From 2176c86f1b9cba0c7d2456c86a754b3cf0d7df2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 10 Sep 2023 11:51:24 +0000 Subject: [PATCH] buildbot-worker: fix package option --- nix/worker.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/worker.nix b/nix/worker.nix index c024961..29240e0 100644 --- a/nix/worker.nix +++ b/nix/worker.nix @@ -14,7 +14,7 @@ in services.buildbot-nix.worker = { enable = lib.mkEnableOption "buildbot-worker"; package = lib.mkOption { - type = lib.types.str; + type = lib.types.package; default = pkgs.buildbot-worker; defaultText = "pkgs.buildbot-worker"; 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" ]; users.users.buildbot-worker = { description = "Buildbot Worker User.";