about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2024-06-09T10·04+0300
committerclbot <clbot@tvl.fyi>2024-06-09T10·10+0000
commiteba19f822a546035bc8cd568554f4f198ad2b3a7 (patch)
tree885f9317a8c35dd95239a521ac7d54c5dd4e45e2
parent23e0973cdfa7e5126475530ca62f1c905708ee57 (diff)
fix(tazjin/nixos): default to shared home config r/8228
If a system doesn't have an overridden home config, just use the shared one.

Change-Id: I6a61f02ec49bfbf0057be7e6481847ee053e7fda
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11766
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--users/tazjin/nixos/modules/home-config.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/users/tazjin/nixos/modules/home-config.nix b/users/tazjin/nixos/modules/home-config.nix
index bda8f7a44014..8e85847b746c 100644
--- a/users/tazjin/nixos/modules/home-config.nix
+++ b/users/tazjin/nixos/modules/home-config.nix
@@ -15,5 +15,6 @@
   nix.settings.trusted-users = [ "tazjin" ];
 
   home-manager.useGlobalPkgs = true;
-  home-manager.users.tazjin = depot.users.tazjin.home."${config.networking.hostName}";
+  home-manager.users.tazjin = with depot.users.tazjin;
+    home."${config.networking.hostName}" or home.shared;
 }