diff options
| author | Seth Flynn <[email protected]> | 2025-02-26 01:14:36 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-26 01:14:36 -0500 |
| commit | 245609fcb7d1fa049781af1cd025f326fec0af69 (patch) | |
| tree | 5f2ef477fe082725e083e2d01841633143778f5e /flake/dev-shells.nix | |
| parent | 76f2297282cabc6f56ac7b93a0c4b6a34b4d72bc (diff) | |
mv flake/dev-shell{,s}.nix
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 + ]; + }; + }; + }; +} |
