nix-darwin: activate home-manager through postActivation

This commit is contained in:
Wael M. Nasreddine 2019-02-19 10:05:47 -08:00 committed by Robert Helgesson
parent 0fa19ed555
commit d3fd287efb
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 2 additions and 2 deletions

View File

@ -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);