summaryrefslogtreecommitdiff
path: root/dev/dev-shells.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-09-07 12:01:28 -0400
committerseth <[email protected]>2024-09-07 12:02:57 -0400
commit73b04cd8498fdf23d3c9e65602f1cb9b5d7733be (patch)
treecc4136b6a866de66c433c180081faa4128786d73 /dev/dev-shells.nix
parent8359c81d75b6febac7cfb8ffa22da937f1c5bdd2 (diff)
.envrc: watch dev/dev-shells.nix
Diffstat (limited to 'dev/dev-shells.nix')
-rw-r--r--dev/dev-shells.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev/dev-shells.nix b/dev/dev-shells.nix
new file mode 100644
index 0000000..211ddfd
--- /dev/null
+++ b/dev/dev-shells.nix
@@ -0,0 +1,42 @@
+{
+ perSystem =
+ {
+ lib,
+ pkgs,
+ inputs',
+ self',
+ ...
+ }:
+ {
+ devShells = {
+ default = pkgs.mkShellNoCC {
+ packages =
+ [
+ # we want to make sure we have the same
+ # nix behavior across machines
+ pkgs.nix
+
+ # format + lint
+ pkgs.actionlint
+ self'.formatter
+ pkgs.nixfmt-rfc-style
+ pkgs.nil
+ pkgs.statix
+
+ # utils
+ pkgs.fzf # for just
+ pkgs.just
+
+ # terranix
+ self'.packages.opentofu
+ ]
+ # see above comment about nix
+ ++ lib.optional pkgs.stdenv.isDarwin inputs'.nix-darwin.packages.darwin-rebuild
+ ++ lib.optionals pkgs.stdenv.isLinux [
+ pkgs.nixos-rebuild # ditto
+ inputs'.agenix.packages.agenix
+ ];
+ };
+ };
+ };
+}