nix/nixos/common/services/forgejo-runner.nix
iFargle f0734c622b
Some checks failed
ssh-test / ssh-test (push) Successful in 28s
deploy-rs / deploy-rs (push) Failing after 0s
test
2023-12-25 12:09:46 +09:00

27 lines
No EOL
856 B
Nix

{ pkgs, config, hostname, ... }: {
# Set up the secret for the password:
sops.secrets."services/forgejo_token" = {
owner = "root";
mode = "0444"; # gitea-actions-runner uses "DynamicUser"
sopsFile = ../../../secrets/secrets.yaml;
restartUnits = [ "gitea-actions-runner-${hostname}.service" ];
};
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances."${hostname}" = {
enable = true;
name = "${hostname}";
labels = [ "self-hosted:host://-self-hosted" ];
url = "https://git.sysctl.io";
tokenFile = /run/secrets/services/forgejo_token;
hostPackages = with pkgs; [
sudo
coreutils
tailscale
bash
];
};
};
}