summaryrefslogtreecommitdiff
path: root/repo/shell.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-04 16:40:38 -0500
committerseth <[email protected]>2024-02-04 16:41:47 -0500
commit5f848623dff7cbcd21911032e5fd4c77bcf7d413 (patch)
tree7462ae7abec5beee71443702b330e3eeca1a407f /repo/shell.nix
parent371235663a4e8d783dfc4294bb0b10cd3206c9c6 (diff)
tree-wide: better separate/name some things
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];
+ };
+ };
+ };
+}