mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
nix-darwin: respect username setting of home-manager in activation script
This commit is contained in:
parent
04213d1ce4
commit
003761539c
1 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ in {
|
|||
(mkIf (cfg.users != { }) {
|
||||
system.activationScripts.postActivation.text = concatStringsSep "\n"
|
||||
(mapAttrsToList (username: usercfg: ''
|
||||
echo Activating home-manager configuration for ${username}
|
||||
sudo -u ${username} --set-home ${
|
||||
pkgs.writeShellScript "activation-${username}" ''
|
||||
echo Activating home-manager configuration for ${usercfg.home.username}
|
||||
sudo -u ${usercfg.home.username} --set-home ${
|
||||
pkgs.writeShellScript "activation-${usercfg.home.username}" ''
|
||||
${lib.optionalString (cfg.backupFileExtension != null)
|
||||
"export HOME_MANAGER_BACKUP_EXT=${
|
||||
lib.escapeShellArg cfg.backupFileExtension
|
||||
|
|
Loading…
Reference in a new issue