nixos/buildbot: fix eval

Fixes https://github.com/NixOS/nixpkgs/issues/77309
This commit is contained in:
worldofpeace 2020-01-08 10:05:39 -05:00
parent ffe6b959a1
commit 79de730e77
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
users.groups = optional (cfg.group == "buildbot") { users.groups = optionalAttrs (cfg.group == "buildbot") {
buildbot = { }; buildbot = { };
}; };

View File

@ -136,7 +136,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.buildbot-worker.workerPassFile = mkDefault (pkgs.writeText "buildbot-worker-password" cfg.workerPass); 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 = { }; bbworker = { };
}; };