buildbot-worker: fix package option

This commit is contained in:
Jörg Thalheim 2023-09-10 11:51:24 +00:00
parent f1b5e56876
commit 2176c86f1b

View file

@ -14,7 +14,7 @@ in
services.buildbot-nix.worker = { services.buildbot-nix.worker = {
enable = lib.mkEnableOption "buildbot-worker"; enable = lib.mkEnableOption "buildbot-worker";
package = lib.mkOption { package = lib.mkOption {
type = lib.types.str; type = lib.types.package;
default = pkgs.buildbot-worker; default = pkgs.buildbot-worker;
defaultText = "pkgs.buildbot-worker"; defaultText = "pkgs.buildbot-worker";
description = "The buildbot-worker package to use."; description = "The buildbot-worker package to use.";
@ -30,7 +30,7 @@ in
}; };
}; };
}; };
config = lib.mkIf config.services.buildbot-worker.enable { config = lib.mkIf cfg.enable {
nix.settings.allowed-users = [ "buildbot-worker" ]; nix.settings.allowed-users = [ "buildbot-worker" ];
users.users.buildbot-worker = { users.users.buildbot-worker = {
description = "Buildbot Worker User."; description = "Buildbot Worker User.";