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..a082245 --- /dev/null +++ b/servers/ci.nix @@ -0,0 +1,27 @@ +{ pkgs, ... }: +{ + networking.firewall.trustedInterfaces = [ "br-+" ]; + + services.gitea-actions-runner = { + package = pkgs.forgejo-runner; + instances.default = { + enable = true; + name = "ci.sinerva.eu"; + url = "https://forgejo.sinerva.eu"; + tokenFile = "/persist/secrets/forgejo_token"; + labels = [ + "ubuntu-24.04-lts:docker://ubuntu:24.04" + "ubuntu-22.04:docker://node:24-bullseye" + "nixos-latest:docker://nixos/nix" + ]; + }; + }; + + virtualisation.docker = { + enable = true; + daemon.settings = { + fixed-cidr-v6 = "fd00::/80"; + ipv6 = true; + }; + }; +}