1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

nix: set nix.useDaemon by default for unmanaged Nix

This commit is contained in:
Emily 2025-02-07 18:29:39 +00:00
parent 32b00fd339
commit a9590d5bb2

View file

@ -223,7 +223,16 @@ in
# Not in NixOS module
useDaemon = mkOption {
type = types.bool;
default = false;
# We assume that unmanaged Nix installations use the daemon by
# default, to match the logic in nix-darwin 25.05. This is
# weird, but it matches the default behaviour in practice
# (since `services.nix-daemon.enable` is on by default and sets
# `nix.useDaemon` to true), and since `nix.enable` didnt
# previously exist, its not a backwardscompatibility concern;
# we can consequently avoid bifurcating the user experience
# across the release branches.
default = !config.nix.enable;
defaultText = literalExpression "!config.nix.enable";
description = ''
If set, Nix will use the daemon to perform operations.
Use this instead of services.nix-daemon.enable if you don't want the