adding gitea runner

This commit is contained in:
2026-01-27 21:17:34 -07:00
parent fb0376e0b9
commit cefe7caa1c
7 changed files with 39 additions and 0 deletions

View File

@@ -286,6 +286,45 @@
]; ];
}; };
}; };
services.gitea-actions-runner = {
instances.infrastructure = {
enable = true;
name = "infrastructure-runner";
url = "https://git.alexmickelson.guru";
tokenFile = "/data/runner/gitea-infrastructure-token.txt";
labels = ["home-server"];
hostPackages = with pkgs; [
docker
git-secret
zfs
sanoid
mbuffer
lzop
kubectl
kubernetes-helm
];
};
};
systemd.services.gitea-actions-runner-infrastructure.serviceConfig = {
ReadWritePaths = [
"/data/cloudflare/"
"/data/runner/infrastructure"
"/data/runner"
"/home/github/infrastructure"
];
PrivateDevices = false;
DeviceAllow = [ "/dev/zfs rw" ];
ProtectProc = false;
ProtectSystem = false;
PrivateMounts = false;
PrivateUsers = false;
ProtectHome = false;
Restart = "always";
};
networking.firewall.enable = false; networking.firewall.enable = false;