We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fd6dc2 commit c630dfaCopy full SHA for c630dfa
nix-darwin/default.nix
@@ -12,9 +12,9 @@ in {
12
(lib.mkIf (cfg.users != { }) {
13
system.activationScripts.postActivation.text = lib.concatStringsSep "\n"
14
(lib.mapAttrsToList (username: usercfg: ''
15
- echo Activating home-manager configuration for ${username}
16
- sudo -u ${username} --set-home ${
17
- 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}" ''
18
${lib.optionalString (cfg.backupFileExtension != null)
19
"export HOME_MANAGER_BACKUP_EXT=${
20
lib.escapeShellArg cfg.backupFileExtension
0 commit comments