diff options
Diffstat (limited to 'dev/dev-shells.nix')
| -rw-r--r-- | dev/dev-shells.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev/dev-shells.nix b/dev/dev-shells.nix new file mode 100644 index 0000000..211ddfd --- /dev/null +++ b/dev/dev-shells.nix @@ -0,0 +1,42 @@ +{ + perSystem = + { + lib, + pkgs, + inputs', + self', + ... + }: + { + devShells = { + default = pkgs.mkShellNoCC { + packages = + [ + # we want to make sure we have the same + # nix behavior across machines + pkgs.nix + + # format + lint + pkgs.actionlint + self'.formatter + pkgs.nixfmt-rfc-style + pkgs.nil + pkgs.statix + + # utils + pkgs.fzf # for just + pkgs.just + + # terranix + self'.packages.opentofu + ] + # see above comment about nix + ++ lib.optional pkgs.stdenv.isDarwin inputs'.nix-darwin.packages.darwin-rebuild + ++ lib.optionals pkgs.stdenv.isLinux [ + pkgs.nixos-rebuild # ditto + inputs'.agenix.packages.agenix + ]; + }; + }; + }; +} |
