summaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
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];
+ };
+ };
+}