39 lines
977 B
Nix
39 lines
977 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
{
|
|
virtualisation = {
|
|
podman ={
|
|
enable = true;
|
|
autoPrune.enable = true;
|
|
dockerCompat = true;
|
|
#defaultNetwork.settings.dns_enabled = true;
|
|
};
|
|
};
|
|
|
|
services.gitea-actions-runner.instances = {
|
|
serverrunner = {
|
|
enable = true;
|
|
url = "https://git.kabtop.de";
|
|
name = "Server runner";
|
|
tokenFile = config.age.secrets."services/gitea/serverrunner-token".path;
|
|
labels = [
|
|
"debian-latest:docker://node:18-bullseye"
|
|
"native:host"
|
|
];
|
|
hostPackages = with pkgs; [
|
|
bash
|
|
curl
|
|
gitMinimal
|
|
coreutils
|
|
wget
|
|
gnused
|
|
];
|
|
};
|
|
};
|
|
|
|
age.secrets."services/gitea/serverrunner-token" = {
|
|
file = ../../../secrets/services/gitea/serverrunner-token.age;
|
|
owner = "gitea-runner";
|
|
};
|
|
}
|