From 73b04cd8498fdf23d3c9e65602f1cb9b5d7733be Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 7 Sep 2024 12:01:28 -0400 Subject: .envrc: watch dev/dev-shells.nix --- dev/dev-shells.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev/dev-shells.nix (limited to 'dev/dev-shells.nix') 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 + ]; + }; + }; + }; +} -- cgit v1.2.3