summaryrefslogtreecommitdiff
path: root/repo/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'repo/shell.nix')
-rw-r--r--repo/shell.nix34
1 files changed, 34 insertions, 0 deletions
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];
+ };
+ };
+ };
+}