mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
activation-scripts: don't link current system before all activationScripts finish
This commit is contained in:
parent
328ce04664
commit
2e93c9ca29
1 changed files with 8 additions and 8 deletions
|
@ -50,6 +50,14 @@ in
|
|||
# Ensure a consistent umask.
|
||||
umask 0022
|
||||
|
||||
${cfg.activationScripts.nix-daemon.text}
|
||||
${cfg.activationScripts.nix.text}
|
||||
|
||||
${cfg.activationScripts.etc.text}
|
||||
${cfg.activationScripts.launchd.text}
|
||||
${cfg.activationScripts.time.text}
|
||||
${cfg.activationScripts.extraActivation.text}
|
||||
|
||||
# Make this configuration the current configuration.
|
||||
# The readlink is there to ensure that when $systemConfig = /system
|
||||
# (which is a symlink to the store), /run/current-system is still
|
||||
|
@ -59,14 +67,6 @@ in
|
|||
# Prevent the current configuration from being garbage-collected.
|
||||
ln -sfn /run/current-system /nix/var/nix/gcroots/current-system
|
||||
|
||||
${cfg.activationScripts.nix-daemon.text}
|
||||
${cfg.activationScripts.nix.text}
|
||||
|
||||
${cfg.activationScripts.etc.text}
|
||||
${cfg.activationScripts.launchd.text}
|
||||
${cfg.activationScripts.time.text}
|
||||
${cfg.activationScripts.extraActivation.text}
|
||||
|
||||
exit $_status
|
||||
'';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue