2024-12-11 13:32:41 +01:00
|
|
|
{ config, pkgs, ... }:
|
2024-11-17 00:46:56 +01:00
|
|
|
|
2024-12-11 13:32:41 +01:00
|
|
|
{
|
2024-11-18 12:09:30 +01:00
|
|
|
virtualisation.docker.enable = true;
|
2024-11-17 00:46:56 +01:00
|
|
|
|
|
|
|
services.gitea-actions-runner = {
|
|
|
|
package = pkgs.forgejo-actions-runner;
|
|
|
|
instances.default = {
|
|
|
|
enable = true;
|
|
|
|
name = "vm02179.procolix.com";
|
|
|
|
url = "https://git.fediversity.eu";
|
2024-12-11 13:32:41 +01:00
|
|
|
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
2024-11-17 00:46:56 +01:00
|
|
|
labels = [
|
|
|
|
"docker:docker://node:16-bullseye"
|
|
|
|
"native:host"
|
|
|
|
];
|
2024-11-18 12:09:30 +01:00
|
|
|
hostPackages = with pkgs; [
|
|
|
|
bash
|
|
|
|
git
|
|
|
|
nix
|
|
|
|
nodejs
|
|
|
|
];
|
2024-11-17 00:46:56 +01:00
|
|
|
settings = {
|
|
|
|
log.level = "info";
|
|
|
|
runner = {
|
|
|
|
file = ".runner";
|
|
|
|
capacity = 8;
|
|
|
|
timeout = "3h";
|
|
|
|
insecure = false;
|
|
|
|
fetch_timeout = "5s";
|
|
|
|
fetch_interval = "2s";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-11 13:32:41 +01:00
|
|
|
age.secrets.forgejo-runner-token.file = ../../secrets/forgejo-runner-token.age;
|
|
|
|
|
2024-11-17 00:46:56 +01:00
|
|
|
## The Nix configuration of the system influences the Nix configuration
|
|
|
|
## in the workflow, and our workflows are often flake-based.
|
|
|
|
nix.extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
}
|