This commit is contained in:
parent
abce966b76
commit
79e54529eb
12 changed files with 76 additions and 54 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ host, config, pkgs, ... }:
|
||||
{
|
||||
host,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -11,27 +16,42 @@
|
|||
sopsFile = ../../secrets/forgejo-runner.yaml;
|
||||
};
|
||||
};
|
||||
system-sys.zram = false;
|
||||
machine.sys.zram = false;
|
||||
networking = {
|
||||
hostId = "81238132";
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
22
|
||||
10250
|
||||
25565 #mc
|
||||
25566 #mc
|
||||
25565 # mc
|
||||
25566 # mc
|
||||
];
|
||||
interfaces."podman+" = {
|
||||
allowedTCPPorts = [ 33393 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
virtualisation.docker = {
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
extraOptions = "--dns 1.1.1.1";
|
||||
};
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-runner;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
name = host.hostName;
|
||||
settings = {
|
||||
runner = {
|
||||
capacity = 3;
|
||||
};
|
||||
cache = {
|
||||
enable = true;
|
||||
host = "host.containers.internal";
|
||||
port = 33393;
|
||||
};
|
||||
container = {
|
||||
force_pull = true;
|
||||
};
|
||||
};
|
||||
url = "https://git.10110110.xyz";
|
||||
tokenFile = config.sops.secrets.forgejo-runner.path;
|
||||
labels = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue