From 5f848623dff7cbcd21911032e5fd4c77bcf7d413 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 4 Feb 2024 16:40:38 -0500 Subject: tree-wide: better separate/name some things --- repo/shell.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 repo/shell.nix (limited to 'repo/shell.nix') diff --git a/repo/shell.nix b/repo/shell.nix new file mode 100644 index 0000000..7442907 --- /dev/null +++ b/repo/shell.nix @@ -0,0 +1,34 @@ +{ + perSystem = { + pkgs, + config, + inputs', + self', + ... + }: { + devShells = { + default = pkgs.mkShellNoCC { + shellHook = config.pre-commit.installationScript; + packages = with pkgs; + [ + nix + + # format + lint + actionlint + self'.formatter + deadnix + nil + statix + + # utils + deploy-rs + fzf + just + config.terranix.package + ] + ++ lib.optional stdenv.isDarwin [inputs'.darwin.packages.darwin-rebuild] + ++ lib.optionals stdenv.isLinux [nixos-rebuild inputs'.agenix.packages.agenix]; + }; + }; + }; +} -- cgit v1.2.3