diff --git a/hosts/ci/configuration.nix b/hosts/ci/configuration.nix index e0f9428..f24380b 100644 --- a/hosts/ci/configuration.nix +++ b/hosts/ci/configuration.nix @@ -4,5 +4,7 @@ ../../shared/base.nix ../../shared/hardware/vm.nix ../../shared/disko/basic-ext4.nix + + ../../servers/ci.nix ]; } diff --git a/servers/ci.nix b/servers/ci.nix new file mode 100644 index 0000000..bebcf04 --- /dev/null +++ b/servers/ci.nix @@ -0,0 +1,26 @@ +{ pkgs, ... }: +{ + networking.firewall.trustedInterfaces = [ "br-+" ]; + + services.gitea-actions-runner = { + package = pkgs.forgejo-runner; + instances."forgejo.sinerva.eu" = { + enable = true; + name = "ci-forgejo-runner"; + token = "/persist/secrets/forgejo_token"; + url = "https://code.forgejo.org/"; + labels = [ + "Ubuntu-24.04-LTS:docker://ubuntu:24.04" + "nixos-latest:docker://nixos/nix" + ]; + }; + }; + + virtualisation.docker = { + enable = true; + daemon.settings = { + fixed-cidr-v6 = "fd00::/80"; + ipv6 = true; + }; + }; +}