diff options
author | Naïm Favier <n@monade.li> | 2023-01-01 14:18:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 14:18:25 +0100 |
commit | c72f5995e487953151c3e2c35dd3fbff44a868e3 (patch) | |
tree | 0650535115893a8c8e098ec1e3f0410f28046fdf /nixos/modules/services | |
parent | 8796411139fd503a8c803490309be8184388014c (diff) | |
parent | cf5ab0191d8582c77a8062646afe6fa09b7d4748 (diff) |
Merge pull request #205933 from ncfavier/nix-auto-allocate-uids
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/misc/nix-daemon.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index 9863cc8e574c8..1d115108c30fb 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -792,7 +792,10 @@ in fi ''; - nix.nrBuildUsers = mkDefault (max 32 (if cfg.settings.max-jobs == "auto" then 0 else cfg.settings.max-jobs)); + nix.nrBuildUsers = mkDefault ( + if cfg.settings.auto-allocate-uids or false then 0 + else max 32 (if cfg.settings.max-jobs == "auto" then 0 else cfg.settings.max-jobs) + ); users.users = nixbldUsers; |