mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-14 12:48:42 +00:00
Only enable services.nix-daemon
when no config is present upon install
This commit is contained in:
parent
5f6d300a2d
commit
32fa78821f
1 changed files with 4 additions and 4 deletions
|
@ -54,11 +54,11 @@ stdenv.mkDerivation {
|
||||||
mkdir -p "$HOME/.nixpkgs"
|
mkdir -p "$HOME/.nixpkgs"
|
||||||
cp "${toString ../../modules/examples/simple.nix}" "$config"
|
cp "${toString ../../modules/examples/simple.nix}" "$config"
|
||||||
chmod u+w "$config"
|
chmod u+w "$config"
|
||||||
fi
|
|
||||||
|
|
||||||
# Enable nix-daemon service for multi-user installs.
|
# Enable nix-daemon service for multi-user installs.
|
||||||
if [ ! -w /nix/var/nix/db ]; then
|
if [ ! -w /nix/var/nix/db ]; then
|
||||||
sed -i 's/# services.nix-daemon.enable/services.nix-daemon.enable/' "$config"
|
sed -i 's/# services.nix-daemon.enable/services.nix-daemon.enable/' "$config"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Skip when stdin is not a tty, eg.
|
# Skip when stdin is not a tty, eg.
|
||||||
|
|
Loading…
Add table
Reference in a new issue