3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #77324 from worldofpeace/buildbot-eval

nixos/buildbot: fix eval, and some twin issues
This commit is contained in:
worldofpeace 2020-01-12 15:17:19 -05:00 committed by GitHub
commit d04c6e0c26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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 = { };
};

View file

@ -50,7 +50,7 @@ in {
};
config = mkIf (cfg.enable && !masterCfg.enable) {
users.groups = optional (cfg.group == "jenkins") {
users.groups = optionalAttrs (cfg.group == "jenkins") {
jenkins.gid = config.ids.gids.jenkins;
};