1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

nix-darwin: redirect output to stderr

This commit is contained in:
andre4ik3 2025-09-13 07:12:22 +00:00 committed by Austin Horstman
parent a3fcc92180
commit 6e28513cf2

View file

@ -23,13 +23,13 @@ in
driverVersion = if cfg.enableLegacyProfileManagement then "0" else "1";
in
''
echo Activating home-manager configuration for ${usercfg.home.username}
echo Activating home-manager configuration for ${usercfg.home.username} >&2
launchctl asuser "$(id -u ${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}"}
${lib.optionalString cfg.verbose "export VERBOSE=1"}
exec ${usercfg.home.activationPackage}/activate --driver-version ${driverVersion}
exec ${usercfg.home.activationPackage}/activate --driver-version ${driverVersion} >&2
''}
''
) cfg.users