summaryrefslogtreecommitdiff
path: root/hosts/eostre/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/eostre/default.nix')
-rw-r--r--hosts/eostre/default.nix39
1 files changed, 0 insertions, 39 deletions
diff --git a/hosts/eostre/default.nix b/hosts/eostre/default.nix
index c8964d99..01dee9ae 100644
--- a/hosts/eostre/default.nix
+++ b/hosts/eostre/default.nix
@@ -96,44 +96,5 @@ with lib;
96 96
97 videoDrivers = [ "nvidia" ]; 97 videoDrivers = [ "nvidia" ];
98 }; 98 };
99
100 systemd.services = mapAttrs' (userName: _: nameValuePair "home-manager-${userName}" { enable = mkForce false; }) config.home-manager.users;
101
102 systemd.user.services."home-manager" = let
103 cfg = config.home-manager;
104 in {
105 description = "Home Manager environment";
106 wantedBy = [ "basic.target" ];
107 before = [ "basic.target" ];
108
109 environment = optionalAttrs (cfg.backupFileExtension != null) {
110 HOME_MANAGER_BACKUP_EXT = cfg.backupFileExtension;
111 } // optionalAttrs cfg.verbose { VERBOSE = "1"; };
112
113 stopIfChanged = false;
114
115 unitConfig.DefaultDependencies = false;
116
117 serviceConfig = {
118 Type = "oneshot";
119 RemainAfterExit = "yes";
120 TimeoutStartSec = 90;
121 SyslogIdentifier = "hm-activate";
122
123 ExecStart = pkgs.writeScript "hm-activate" ''
124 #! ${pkgs.runtimeShell} -el
125
126 case $USER in
127 ${concatStringsSep "\n " (mapAttrsToList (_: usercfg: builtins.replaceStrings ["\n"] ["\n "] ''
128 ${usercfg.home.username})
129 ${usercfg.home.activationPackage}/activate
130 systemctl --user daemon-reload
131 ;;
132 '') cfg.users)}
133 *) exit 0; ;;
134 esac
135 '';
136 };
137 };
138 }; 99 };
139} 100}