Compare commits
2 commits
91f9eb3d7d
...
cdf2c24dad
| Author | SHA1 | Date | |
|---|---|---|---|
| cdf2c24dad | |||
| 9acadf9926 |
3 changed files with 2 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Hardware configuration
|
||||
{ modulesPath, ... }:
|
||||
{ lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
|
|||
|
|
@ -8,12 +8,6 @@
|
|||
|
||||
options.my.services.woodpecker = with lib; {
|
||||
enable = mkEnableOption "Woodpecker CI";
|
||||
forge = mkOption {
|
||||
type = types.enum [ "gitea" "forgejo" ];
|
||||
default = "forgejo";
|
||||
example = "gitea";
|
||||
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.${cfg.forge}.settings.server.ROOT_URL;
|
||||
WOODPECKER_GITEA_URL = config.services.gitea.settings.server.ROOT_URL;
|
||||
|
||||
WOODPECKER_LOG_LEVEL = "debug";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue