diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2019-07-01 21:14:14 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2019-07-01 21:24:29 +0200 |
| commit | 8c2b25e60dfd60dc4ca1a0220e5c00f7af4132c4 (patch) | |
| tree | 93d8c9575b658adbe3abccf2d8f74e656cd96ec8 /modules/services | |
| parent | 2415dd6e42be9f8d6e1eaa075b14810c27bf907f (diff) | |
nix: fix useDaemon conditions
The nix.useDaemon option enables using a multi-user install without
managing the nix installation with nix-darwin. The following checks
apply to both cases.
Diffstat (limited to 'modules/services')
| -rw-r--r-- | modules/services/nix-gc/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/services/nix-gc/default.nix b/modules/services/nix-gc/default.nix index ca4a0ab..57b3e22 100644 --- a/modules/services/nix-gc/default.nix +++ b/modules/services/nix-gc/default.nix @@ -41,7 +41,7 @@ in launchd.daemons.nix-gc = { command = "${config.nix.package}/bin/nix-collect-garbage ${cfg.options}"; - environment.NIX_REMOTE = optionalString config.services.nix-daemon.enable "daemon"; + environment.NIX_REMOTE = optionalString config.nix.useDaemon "daemon"; serviceConfig.RunAtLoad = false; serviceConfig.StartCalendarInterval = [ cfg.interval ]; serviceConfig.UserName = cfg.user; |
