nixos: services: woodpecker: configurable forge
This commit is contained in:
parent
b41fd9e48e
commit
f3207468f9
|
@ -8,6 +8,12 @@
|
|||
|
||||
options.my.services.woodpecker = with lib; {
|
||||
enable = mkEnableOption "Woodpecker CI";
|
||||
forge = mkOption {
|
||||
type = types.enum [ "gitea" "forgejo" ];
|
||||
default = "gitea";
|
||||
example = "forgejo";
|
||||
description = "Which Forge to connect to";
|
||||
};
|
||||
runners = mkOption {
|
||||
type = with types; listOf (enum [ "exec" "docker" ]);
|
||||
default = [ ];
|
||||
|
|
|
@ -17,7 +17,7 @@ in
|
|||
WOODPECKER_GRPC_ADDR = ":${toString cfg.rpcPort}";
|
||||
|
||||
WOODPECKER_GITEA = "true";
|
||||
WOODPECKER_GITEA_URL = config.services.gitea.settings.server.ROOT_URL;
|
||||
WOODPECKER_GITEA_URL = config.services.${cfg.forge}.settings.server.ROOT_URL;
|
||||
|
||||
WOODPECKER_LOG_LEVEL = "debug";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue