nixos/buildbot: fix eval
Fixes https://github.com/NixOS/nixpkgs/issues/77309
This commit is contained in:
parent
ffe6b959a1
commit
79de730e77
@ -222,7 +222,7 @@ in {
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.groups = optional (cfg.group == "buildbot") {
|
||||
users.groups = optionalAttrs (cfg.group == "buildbot") {
|
||||
buildbot = { };
|
||||
};
|
||||
|
||||
|
@ -136,7 +136,7 @@ in {
|
||||
config = mkIf cfg.enable {
|
||||
services.buildbot-worker.workerPassFile = mkDefault (pkgs.writeText "buildbot-worker-password" cfg.workerPass);
|
||||
|
||||
users.groups = optional (cfg.group == "bbworker") {
|
||||
users.groups = optionalAttrs (cfg.group == "bbworker") {
|
||||
bbworker = { };
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user