-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
44 lines (39 loc) · 1.03 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
outputs = inputs: let
eachSystem = inputs.nixpkgs.lib.genAttrs ["x86_64-linux"];
pkgsFor = eachSystem (system:
import inputs.nixpkgs {
inherit system;
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
});
in {
devShells = eachSystem (
system: let
pkgs = pkgsFor.${system};
inherit (pkgs) lib;
scripts = import ./scripts.nix {inherit pkgs lib;};
notifiyer-pkgs = import ./notifiyer/pkgs.nix {inherit pkgs;};
in {
default = pkgs.mkShell {
packages = with pkgs;
[
phpactor # lsp
php83Packages.php-cs-fixer # formatter
tailwindcss # stylesheet builder
docker-compose
flyctl # deployment
]
++ scripts
++ notifiyer-pkgs;
buildInputs = with pkgs; [
php83
];
};
}
);
};
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
}