1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

nix: only include build-users-group if the nix-daemon service is enabled

This commit is contained in:
Daiderd Jordan 2017-01-05 23:11:30 +01:00
parent 2c970bdad9
commit e925a2d50e
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

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