mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
nix-daemon: enable by default
Single user installs have been unsupported by the official Nix installer since 2.4.
This commit is contained in:
parent
d2498644fd
commit
698414e409
2 changed files with 1 additions and 6 deletions
|
@ -10,7 +10,7 @@ in
|
||||||
options = {
|
options = {
|
||||||
services.nix-daemon.enable = mkOption {
|
services.nix-daemon.enable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = true;
|
||||||
description = "Whether to enable the nix-daemon service.";
|
description = "Whether to enable the nix-daemon service.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -53,11 +53,6 @@ stdenv.mkDerivation {
|
||||||
mkdir -p "$HOME/.nixpkgs"
|
mkdir -p "$HOME/.nixpkgs"
|
||||||
cp "${../../modules/examples/simple.nix}" "$config"
|
cp "${../../modules/examples/simple.nix}" "$config"
|
||||||
chmod u+w "$config"
|
chmod u+w "$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
|
fi
|
||||||
|
|
||||||
# Skip when stdin is not a tty, eg.
|
# Skip when stdin is not a tty, eg.
|
||||||
|
|
Loading…
Reference in a new issue