about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-30T10·21+0200
committerclbot <clbot@tvl.fyi>2023-10-30T12·15+0000
commit5b03bebce8e3860dfdee55930fe6c6ebdb1a9ed1 (patch)
tree379ec386ed0b4c228415f59a8b54b66f5798c3f4
parent5d2789d1ad34b29dff2046dd37437231f489784e (diff)
feat(users/flokli/nixos): use lazydeps for shell r/6913
Avoid having to re-enter the shell whenever the config is changed.

Change-Id: Ib9f6bb4075e29acaeb4863d64c017695ca85b60b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9841
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
-rw-r--r--users/flokli/nixos/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/users/flokli/nixos/default.nix b/users/flokli/nixos/default.nix
index 73b8e6f036db..90bda9f1a42b 100644
--- a/users/flokli/nixos/default.nix
+++ b/users/flokli/nixos/default.nix
@@ -25,11 +25,16 @@ depot.nix.readTree.drvTargets rec {
     ];
   })).config.system.build.toplevel;
 
+  deploy-archeology = (deployScript "archeology" archeologySystem);
+  deploy-archeology-ec2 = (deployScript "archeology-ec2" archeologyEc2System);
+
   shell = pkgs.mkShell {
     name = "flokli-nixos-shell";
     packages = [
-      (deployScript "archeology" archeologySystem)
-      (deployScript "archeology-ec2" archeologyEc2System)
+      (depot.nix.lazy-deps {
+        deploy-archeology.attr = "users.flokli.nixos.deploy-archeology";
+        deploy-archeology-ec2.attr = "users.flokli.nixos.deploy-archeology-ec2";
+      })
     ];
   };
 }