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