aboutsummaryrefslogtreecommitdiff
path: root/infra/nix/devshell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/nix/devshell.nix')
-rw-r--r--infra/nix/devshell.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/infra/nix/devshell.nix b/infra/nix/devshell.nix
new file mode 100644
index 0000000..676f663
--- /dev/null
+++ b/infra/nix/devshell.nix
@@ -0,0 +1,15 @@
+{ inputs, self, ... }:
+{
+ perSystem =
+ { pkgs, system, ... }:
+ {
+ devShells.infra =
+ let
+ treefmt = pkgs.callPackage ./_treefmt.nix { treefmt-nix = inputs.treefmt-nix; };
+ in
+ pkgs.mkShellNoCC {
+ inputsFrom = [ self.devShells."${system}".common ];
+ packages = [ treefmt ];
+ };
+ };
+}