nix-darwin: activate home-manager through postActivation
This commit is contained in:
parent
0fa19ed555
commit
d3fd287efb
|
@ -30,8 +30,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.users != {}) {
|
config = mkIf (cfg.users != {}) {
|
||||||
system.activationScripts.extraActivation.text =
|
system.activationScripts.postActivation.text =
|
||||||
lib.concatStringsSep "\n" (lib.mapAttrsToList (username: usercfg: ''
|
concatStringsSep "\n" (mapAttrsToList (username: usercfg: ''
|
||||||
echo Activating home-manager configuration for ${username}
|
echo Activating home-manager configuration for ${username}
|
||||||
sudo -u ${username} ${usercfg.home.activationPackage}/activate
|
sudo -u ${username} ${usercfg.home.activationPackage}/activate
|
||||||
'') cfg.users);
|
'') cfg.users);
|
||||||
|
|
Loading…
Reference in a new issue