summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-11-11 19:56:15 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-11-16 23:19:11 +1100
commit698414e4091d919cc1b3af622f29bd594d3c21c3 (patch)
tree5b28cf55febc0063dce56ceeb73e7285636493e4
parentd2498644fd84360e46ad90de3029066ad441e15a (diff)
nix-daemon: enable by default
Single user installs have been unsupported by the official Nix installer since 2.4.
-rw-r--r--modules/services/nix-daemon.nix2
-rw-r--r--pkgs/darwin-installer/default.nix5
2 files changed, 1 insertions, 6 deletions
diff --git a/modules/services/nix-daemon.nix b/modules/services/nix-daemon.nix
index 6f93131..ffc7e65 100644
--- a/modules/services/nix-daemon.nix
+++ b/modules/services/nix-daemon.nix
@@ -10,7 +10,7 @@ in
options = {
services.nix-daemon.enable = mkOption {
type = types.bool;
- default = false;
+ default = true;
description = "Whether to enable the nix-daemon service.";
};
diff --git a/pkgs/darwin-installer/default.nix b/pkgs/darwin-installer/default.nix
index 5c6d801..78ca3c8 100644
--- a/pkgs/darwin-installer/default.nix
+++ b/pkgs/darwin-installer/default.nix
@@ -53,11 +53,6 @@ stdenv.mkDerivation {
mkdir -p "$HOME/.nixpkgs"
cp "${../../modules/examples/simple.nix}" "$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
# Skip when stdin is not a tty, eg.