diff options
Diffstat (limited to 'flake/dev-shells.nix')
| -rw-r--r-- | flake/dev-shells.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/flake/dev-shells.nix b/flake/dev-shells.nix new file mode 100644 index 0000000..8d333a6 --- /dev/null +++ b/flake/dev-shells.nix @@ -0,0 +1,48 @@ +{ + perSystem = + { + lib, + pkgs, + inputs', + self', + ... + }: + + let + inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux; + in + + { + devShells = { + default = pkgs.mkShellNoCC { + packages = + [ + # We want to make sure we have the same + # Nix behavior across machines + pkgs.nix + + # For CI + pkgs.actionlint + + # Nix tools + pkgs.nil + pkgs.statix + self'.formatter + + pkgs.just + pkgs.opentofu + ] + ++ lib.optionals isDarwin [ + # See above comment about Nix + inputs'.nix-darwin.packages.darwin-rebuild + ] + ++ lib.optionals isLinux [ + # Ditto + pkgs.nixos-rebuild + + inputs'.agenix.packages.agenix + ]; + }; + }; + }; +} |
