Compare commits

..

3 commits

Author SHA1 Message Date
91f9eb3d7d hosts: nixos: porthos: migrate to new host
All checks were successful
ci/woodpecker/push/check Pipeline was successful
OVH/Kimsufi are deprecating my current server by the end of the year. So
let's migrate to a new host.

This was more painful than initially planned, OVH introduced a change to
their rescue system which messes with the NixOS installation [1].

In the end I used a kexec image [2] to run the installation.

[1]: https://github.com/NixOS/nix/issues/7790
[2]: https://github.com/nix-community/nixos-images
2024-03-09 13:48:07 +01:00
d0f4e95e1f hosts: nixos: porthos: switch to forgejo
All checks were successful
ci/woodpecker/push/check Pipeline was successful
This required a quick rename to migrate from one to the other.
2024-03-09 13:37:16 +01:00
b77a8bffc6 nixos: services: woodpecker: configurable forge 2024-03-09 13:37:16 +01:00
3 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,5 @@
# Hardware configuration
{ lib, modulesPath, ... }:
{ modulesPath, ... }:
{
imports = [

View file

@ -8,6 +8,12 @@
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 = [ ];

View file

@ -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";
};