diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2017-01-05 23:11:30 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2017-01-05 23:12:47 +0100 |
| commit | e925a2d50e2d5dd26d1f8d9335d91fa6cf218265 (patch) | |
| tree | b8d35c527110a4b7d3485e2a38256f3b21dfd18a /modules/nix/default.nix | |
| parent | 2c970bdad9c3844a2e969d79c0f83217860be63c (diff) | |
nix: only include build-users-group if the nix-daemon service is enabled
Diffstat (limited to 'modules/nix/default.nix')
| -rw-r--r-- | modules/nix/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 7c6ab55..7dfb727 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -19,7 +19,9 @@ let # WARNING: this file is generated from the nix.* options in # your NixOS configuration, typically # /etc/nixos/configuration.nix. Do not edit it! - build-users-group = nixbld + ${optionalString (config.services.nix-daemon.enable) '' + build-users-group = nixbld + ''} build-max-jobs = ${toString (cfg.maxJobs)} build-cores = ${toString (cfg.buildCores)} build-use-sandbox = ${if (builtins.isBool cfg.useSandbox) then (if cfg.useSandbox then "true" else "false") else cfg.useSandbox} |
