summaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-04-06 22:08:07 -0400
committerseth <[email protected]>2024-04-06 22:59:56 -0400
commitcdeb7d50f232103294a2bb36525a6d9f552fb4ed (patch)
tree3fd24ce84ae35fe9282b93edcf5659c9ae01bf0a /shell.nix
parent5d725b0db9a0e57533e67e299f6213fa5d90203a (diff)
separate everything from flake.nix again
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..942a9fc
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,33 @@
+{
+ perSystem = {
+ config,
+ lib,
+ pkgs,
+ inputs',
+ self',
+ ...
+ }: {
+ devShells.default = pkgs.mkShellNoCC {
+ shellHook = config.pre-commit.installationScript;
+ packages =
+ [
+ pkgs.nix
+
+ # format + lint
+ pkgs.actionlint
+ self'.formatter
+ pkgs.deadnix
+ pkgs.nil
+ pkgs.statix
+
+ # utils
+ pkgs.deploy-rs
+ pkgs.fzf
+ pkgs.just
+ config.terranix.package
+ ]
+ ++ lib.optional pkgs.stdenv.isDarwin [inputs'.darwin.packages.darwin-rebuild]
+ ++ lib.optionals pkgs.stdenv.isLinux [pkgs.nixos-rebuild inputs'.agenix.packages.agenix];
+ };
+ };
+}