36 lines
777 B
Nix
36 lines
777 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
inputs,
|
|
cfg,
|
|
...
|
|
}: {
|
|
environment.systemPackages = with pkgs; [
|
|
docker
|
|
];
|
|
|
|
# Enable docker
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
daemon.settings = {
|
|
fixed-cidr-v6 = "fd00::/80";
|
|
ipv6 = true;
|
|
};
|
|
};
|
|
opt.domain = lib.mkOption {type = lib.types.str;};
|
|
opt.instancename = lib.mkOption {type = lib.types.str;};
|
|
# Forgejo actions runner
|
|
services.gitea-actions-runner = {
|
|
package = config.pkgsInstances.unstable.forgejo-runner;
|
|
instances = {
|
|
"${cfg.instancename}" = {
|
|
enable = true;
|
|
url = "https://${cfg.domain}";
|
|
name = cfg.instancename;
|
|
tokenFile = config.sops.secrets."hosts/forgejo-ci/forgejo_ci_token".path;
|
|
labels = [];
|
|
};
|
|
};
|
|
};
|
|
}
|