nixos-config/modules/nixos/services/git/runner.nix
Charlotte Van Petegem 5e77caba66
Some checks failed
Cachix / build (marabethia) (push) Successful in 1m56s
Cachix / build (elendel) (push) Waiting to run
Cachix / build (kholinar) (push) Has been cancelled
Disable docker ipv6
2025-04-21 15:31:57 +02:00

36 lines
961 B
Nix

{ 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;
};
};
}