From 245609fcb7d1fa049781af1cd025f326fec0af69 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Wed, 26 Feb 2025 01:14:36 -0500 Subject: mv flake/dev-shell{,s}.nix --- flake/dev-shells.nix | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 flake/dev-shells.nix (limited to 'flake/dev-shells.nix') 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 + ]; + }; + }; + }; +} -- cgit v1.2.3