nixos-configuration/nixosConfigurations/muede-pc2/gitea-runner.nix
müde cb4acd6665
Some checks failed
build / build (muede-lpt2) (push) Has been cancelled
build / build (muede-pc2) (push) Has been cancelled
build / close-on-failure (push) Has been cancelled
add ci
2026-09-13 14:36:08 +02:00

34 lines
974 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.forgejo-runner ];
# https://wiki.nixos.org/wiki/Forgejo
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.default = {
enable = true;
name = "pc2";
url = "https://forge.darkest.space";
# tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd
# placed manually, not managed by Nix
tokenFile = "/etc/forgejo-runner/registration_token";
# no docker:// image -> jobs run directly on the host, giving them
# pc2's real Nix store/daemon (needed for `nix build` results to be
# substitutable by other hosts via the existing distributed-builds mesh)
labels = [ "nixos:host" ];
hostPackages = with pkgs; [
bash
coreutils
curl
gawk
gitMinimal
gnused
jq
nodejs
wget
config.nix.package
];
};
};
}