Skip to content

Commit

Permalink
nix-darwin: use correct username in activation script
Browse files Browse the repository at this point in the history
  • Loading branch information
toodeluna committed Feb 28, 2025
1 parent b71edac commit 327d574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nix-darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 327d574

Please sign in to comment.