Add Forgejo runner to CI host config
This commit is contained in:
parent
d8aa22756d
commit
1b7b14ea81
2 changed files with 28 additions and 0 deletions
|
@ -4,5 +4,7 @@
|
|||
../../shared/base.nix
|
||||
../../shared/hardware/vm.nix
|
||||
../../shared/disko/basic-ext4.nix
|
||||
|
||||
../../servers/ci.nix
|
||||
];
|
||||
}
|
||||
|
|
26
servers/ci.nix
Normal file
26
servers/ci.nix
Normal file
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue