1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-11-13 04:56:53 +03:00

installer: move /run creation

This commit is contained in:
Daiderd Jordan 2018-01-14 12:44:50 +01:00
parent 850dc95145
commit d107dfbc3a
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -40,12 +40,17 @@ with lib;
;;
esac
fi
'';
system.activationScripts.preActivation.text = ''
echo "setting up /run..."
if ! test -L /run; then
sudo ln -sfn private/var/run /run
echo "setting up /run..."
if test -t 1; then
read -p "Would you like to create /run? [y/n] " i
fi
case "$i" in
y|Y)
sudo ln -sfn private/var/run /run
;;
esac
fi
'';
}