Skip to content

Commit 011af97

Browse files
committed
Setup the NixOS development environment
1 parent 8ca4c44 commit 011af97

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ yarn-error.log
2222
/.nova
2323
/.vscode
2424
/.zed
25+
26+
/.nix-shell

flake.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
description = "Laravel Development Environment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
6+
};
7+
8+
outputs = {
9+
self,
10+
nixpkgs,
11+
}: let
12+
system = "x86_64-linux";
13+
pkgs = import nixpkgs {inherit system;};
14+
in {
15+
devShells.${system}.default = pkgs.mkShell {
16+
packages = with pkgs; [
17+
# PHP
18+
php84
19+
php84Packages.composer
20+
21+
# Node
22+
nodejs_23
23+
24+
# Tools
25+
mailpit
26+
];
27+
28+
shellHook = ''
29+
export COMPOSER_HOME="$PWD/.dev-shell";
30+
export PATH="$PWD/.dev-shell/vendor/bin:$PATH"
31+
'';
32+
};
33+
};
34+
}

0 commit comments

Comments
 (0)