1
0
Fork 0
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:
Daiderd Jordan 2017-05-11 21:36:57 +02:00
parent 93581740af
commit c7d92b852e
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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