homelab/lxc-forge-runner.nix

59 lines
1.2 KiB
Nix
Raw Normal View History

2026-01-07 16:37:18 -06:00
{
pkgs,
lib,
...
}:
{
imports = [
./lxc-base.nix
];
config = {
my.vm = {
name = "runner01";
ip4 = "192.168.0.7";
};
environment.systemPackages = with pkgs; [
grafana-to-ntfy
];
networking.extraHosts = ''
192.168.0.2 xalicas
192.168.0.3 proxmox
192.168.0.4 craft01
192.168.0.5 lab01
192.168.0.6 metrics01
192.168.0.7 runner01
192.168.0.100 unifi
'';
networking.firewall.trustedInterfaces = [ "br-+" ];
virtualisation.docker = {
enable = true;
daemon.settings = {
fixed-cidr-v6 = "fd00::/80";
ipv6 = true;
};
};
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.runner01 = {
enable = true;
name = "runner01";
token = "E17wr2p2EH4krR5NIUokwsBhhdLCWNW5ahpEyjHY";
url = "https://forge.rperce.net/";
labels = [
"node-22:docker://node:22-bookworm"
"nixos-latest:docker://nixos/nix"
"playwright-latest:docker://mcr.microsoft.com/playwright:v1.57.0-jammy"
];
# settings = { ... };
};
};
};
}