git: Setup runner on marabethia
All checks were successful
Cachix / build (elendel) (push) Successful in 1m2s
Cachix / build (kholinar) (push) Successful in 1m55s
Cachix / build (lasting-integrity) (push) Successful in 1m41s
Cachix / build (marabethia) (push) Successful in 1m8s
Cachix / build (urithiru) (push) Successful in 1m20s

This commit is contained in:
Charlotte Van Petegem 2024-11-11 01:05:47 +01:00
parent 49bf851188
commit df01f9cd93
No known key found for this signature in database
GPG key ID: 019E764B7184435A
8 changed files with 162 additions and 0 deletions

View file

@ -6,6 +6,8 @@
example = true;
};
imports = [ ./runner.nix ];
config = lib.mkIf config.chvp.services.git.enable {
chvp.services.nginx.hosts = [
{

View file

@ -0,0 +1,36 @@
{ config, lib, pkgs, ... }:
{
options.chvp.services.git.runner.enable = lib.mkOption {
default = false;
example = true;
};
config = lib.mkIf config.chvp.services.git.runner.enable {
networking.firewall.trustedInterfaces = [ "br-+" ];
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.default = {
enable = true;
url = "https://git.chvp.be";
labels = [];
name = config.networking.hostName;
tokenFile = config.age.secrets."passwords/services/git/token-file".path;
settings = {
container.enable_ipv6 = true;
};
};
};
virtualisation.docker = {
enable = true;
daemon.settings = {
fixed-cidr-v6 = "fd00::/80";
ipv6 = true;
};
};
age.secrets."passwords/services/git/token-file" = {
file = ../../../../secrets/passwords/services/git/token-file.age;
};
};
}