installer: make configuration writable

If the installer is built from a channel or url the example is copied
from the store and won't have write permissions.
This commit is contained in:
Daiderd Jordan 2018-04-14 00:28:11 +02:00
parent cdab52bbe8
commit 49b899dd97
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -49,6 +49,7 @@ stdenv.mkDerivation {
echo "copying example configuration.nix" >&2
mkdir -p "$HOME/.nixpkgs"
cp "${toString ../../modules/examples/simple.nix}" "$config"
chmod u+w "$config"
fi
# Skip when stdin is not a tty, eg.