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:
parent
a3fcc92180
commit
6e28513cf2
1 changed files with 2 additions and 2 deletions
|
|
@ -23,13 +23,13 @@ in
|
||||||
driverVersion = if cfg.enableLegacyProfileManagement then "0" else "1";
|
driverVersion = if cfg.enableLegacyProfileManagement then "0" else "1";
|
||||||
in
|
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}" ''
|
launchctl asuser "$(id -u ${usercfg.home.username})" sudo -u ${usercfg.home.username} --set-home ${pkgs.writeShellScript "activation-${usercfg.home.username}" ''
|
||||||
${lib.optionalString (
|
${lib.optionalString (
|
||||||
cfg.backupFileExtension != null
|
cfg.backupFileExtension != null
|
||||||
) "export HOME_MANAGER_BACKUP_EXT=${lib.escapeShellArg cfg.backupFileExtension}"}
|
) "export HOME_MANAGER_BACKUP_EXT=${lib.escapeShellArg cfg.backupFileExtension}"}
|
||||||
${lib.optionalString cfg.verbose "export VERBOSE=1"}
|
${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
|
) cfg.users
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue