homelab/modules/gitea/thea/default.nix
shobu cf98d452bc
Some checks failed
/ Build Nix targets (push) Has been cancelled
/ build hive configuration (push) Failing after 8m39s
change runner image version
2025-11-12 06:17:27 +01:00

29 lines
811 B
Nix

{nodes, inputs, pkgs, ...}:let
sin-address = "192.168.1.14";
unstable = import inputs.unstable {system = pkgs.system;};
in{
imports = [
./virtualisation.nix
];
networking.nat.forwardPorts = [{
sourcePort = nodes.sin.config.services.gitea.settings.server.SSH_PORT;
proto = "tcp";
destination = "${sin-address}:22";
}];
services.gitea-actions-runner.package = unstable.gitea-actions-runner;
services.gitea-actions-runner.instances = {
"gitea.shobu.fr-runner" = {
enable = true;
name = "gitea.shobu.fr-runner";
url = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
token = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
labels = [
"ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
]
;
};
};
}