mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
nix-darwin: activate home-manager through postActivation
This commit is contained in:
committed by
Robert Helgesson
parent
0fa19ed555
commit
d3fd287efb
@@ -30,8 +30,8 @@ in
|
||||
};
|
||||
|
||||
config = mkIf (cfg.users != {}) {
|
||||
system.activationScripts.extraActivation.text =
|
||||
lib.concatStringsSep "\n" (lib.mapAttrsToList (username: usercfg: ''
|
||||
system.activationScripts.postActivation.text =
|
||||
concatStringsSep "\n" (mapAttrsToList (username: usercfg: ''
|
||||
echo Activating home-manager configuration for ${username}
|
||||
sudo -u ${username} ${usercfg.home.activationPackage}/activate
|
||||
'') cfg.users);
|
||||
|
||||
Reference in New Issue
Block a user