nixos-server-conf/runner_system.nix

66 lines
1.7 KiB
Nix
Raw Normal View History

2025-04-01 14:46:19 +00:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
# NixOS-WSL specific options are documented on the NixOS-WSL repository:
# https://github.com/nix-community/NixOS-WSL
{
config,
lib,
pkgs,
...
}:
2025-04-01 14:46:19 +00:00
let
cfg = config.services.forgejo;
srv = cfg.settings.server;
2025-04-01 14:46:19 +00:00
in
{
imports = [
./shared/system.nix
./shared/dev_user.nix
./shared/docker.nix
./shared/ssh.nix
];
services = {
gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.default = {
enable = true;
2025-06-11 07:31:03 +00:00
name = "linux-runner";
2025-05-22 07:55:20 +00:00
url = "https://pts-paper.de";
2025-07-07 07:34:28 +00:00
token = "FXKKHShzmdtmUaAGoDBDZ2hlv7tgwODvbY9v9P8r";
labels = [
"ubuntu-latest:docker://node:16-bullseye"
"ubuntu-22.04:docker://node:16-bullseye"
"ubuntu-20.04:docker://node:16-bullseye"
];
2025-05-22 11:40:56 +00:00
settings = {
runner = {
capacity = 4;
2025-06-11 07:22:19 +00:00
};
2025-05-22 11:40:56 +00:00
};
};
2025-04-01 14:46:19 +00:00
};
};
2025-06-19 10:58:31 +00:00
virtualisation = {
oci-containers = {
containers = {
forgejo_runner = {
2025-06-19 11:02:14 +00:00
image = "vegardit/gitea-act-runner:dind-latest";
2025-06-19 10:58:31 +00:00
autoStart = true;
privileged = true;
environment = {
2025-07-07 07:38:03 +00:00
GITEA_RUNNER_NAME = "DinD-Runner";
2025-06-19 10:58:31 +00:00
GITEA_INSTANCE_URL = "https://pts-paper.de";
2025-07-07 07:34:28 +00:00
GITEA_RUNNER_REGISTRATION_TOKEN = "AeQKyYXuGZR5RiGCEKKsi4rDnzhryIOXujAsu7Qb";
2025-06-19 11:28:31 +00:00
GITEA_RUNNER_LABELS = "ubuntu-24.04-dind:docker://ghcr.io/catthehacker/ubuntu:act-24.04";
2025-06-19 10:58:31 +00:00
};
2025-06-19 11:02:38 +00:00
};
};
2025-06-19 10:58:31 +00:00
};
};
}