1
0
Fork 0
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:
Michael Hoang 2024-11-11 19:56:15 +11:00
parent d2498644fd
commit 698414e409
2 changed files with 1 additions and 6 deletions

View file

@ -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.";
}; };

View file

@ -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.