mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
darwin-rebuild: run user activation first
Some of the activation scripts use /run/current-system as a reference for things that should be removed. The symlink is updated by the system activation script thus it should run last.
This commit is contained in:
parent
93581740af
commit
c7d92b852e
1 changed files with 2 additions and 2 deletions
|
@ -94,11 +94,11 @@ if [ "$action" = switch ]; then
|
|||
nix-env -p $profile --set $systemConfig
|
||||
fi
|
||||
|
||||
$systemConfig/activate-user
|
||||
|
||||
if [ "$USER" != root ]; then
|
||||
sudo $systemConfig/activate
|
||||
else
|
||||
$systemConfig/activate
|
||||
fi
|
||||
|
||||
$systemConfig/activate-user
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue