nixos-config/machines/gitea-runner/gitea-runner/default.nix
Erwin Boskma 4cd0f83ce8
Some checks failed
/ check (push) Failing after 2m46s
Run nixfmt
2024-02-05 11:46:52 +01:00

33 lines
788 B
Nix

{ pkgs, config, ... }:
{
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances = {
nix = {
name = "nix";
enable = true;
url = "https://git.datarift.nl";
tokenFile = config.sops.secrets.runner-nix-token.path;
labels = [ "nix:docker://ghcr.io/eboskma/forgejo-nix-runner:latest" ];
settings = {
log = {
level = "info";
};
runner = {
capacity = 1;
};
container = {
privileged = true;
valid_volumes = [
"/nix"
"/run/podman/podman.sock"
"/etc/containers/policy.json"
];
docker_host = "-";
};
};
};
};
};
}