mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
nix-darwin: login as the user when activating
This commit is contained in:
committed by
Robert Helgesson
parent
efc795920b
commit
7ec153889c
@@ -42,7 +42,7 @@ in
|
||||
system.activationScripts.postActivation.text =
|
||||
concatStringsSep "\n" (mapAttrsToList (username: usercfg: ''
|
||||
echo Activating home-manager configuration for ${username}
|
||||
sudo -u ${username} ${usercfg.home.activationPackage}/activate
|
||||
sudo -u ${username} -i ${usercfg.home.activationPackage}/activate
|
||||
'') cfg.users);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user