about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorAspen Smith <root@gws.fyi>2024-04-19T12·59-0400
committerclbot <clbot@tvl.fyi>2024-04-19T15·54+0000
commitf1efde53915d029887e4e1651fd5b943a10d4c9f (patch)
tree5f8ac208548a0a4fbdc60da3dabb1df55a4c96e4 /users
parent238c122b9c2a5d89bef63cba40fb6594fae2d07f (diff)
feat(aspen/system): use profiles in rebuild-home r/7961
Change-Id: I07e6e16b89c864da85480d980fce98f6b10d2978
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11478
Tested-by: BuildkiteCI
Reviewed-by: aspen <root@gws.fyi>
Autosubmit: aspen <root@gws.fyi>
Diffstat (limited to 'users')
-rw-r--r--users/aspen/system/home/modules/common.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/users/aspen/system/home/modules/common.nix b/users/aspen/system/home/modules/common.nix
index 17950ce036df..b51ae1c7db7e 100644
--- a/users/aspen/system/home/modules/common.nix
+++ b/users/aspen/system/home/modules/common.nix
@@ -72,14 +72,13 @@
     (writeShellScriptBin "rebuild-home" ''
       set -eo pipefail
       cd ~/code/depot
-      nix build -f . users.aspen.system.home.$(hostname)Home -o /tmp/home
-      /tmp/home/activate
+      home=$(nix-build -A users.aspen.system.home.$(hostname)Home -o /tmp/home)
+      nix-env -p /nix/var/nix/per-user/aspen/home --set $home
+      $home/activate
     '')
   ];
 
-  programs.ssh = {
-    enable = true;
-  };
+  programs.ssh = { enable = true; };
 
   programs.direnv = {
     enable = true;