mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
nix-darwin: login as the user when activating
This commit is contained in:
parent
efc795920b
commit
7ec153889c
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ in
|
||||||
system.activationScripts.postActivation.text =
|
system.activationScripts.postActivation.text =
|
||||||
concatStringsSep "\n" (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} -i ${usercfg.home.activationPackage}/activate
|
||||||
'') cfg.users);
|
'') cfg.users);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue