nix/nixos/common/services/forgejo-runner.nix
iFargle f37ccb6981
Some checks failed
ssh-test / ssh-test (push) Failing after 14s
test
2023-12-25 11:20:08 +09:00

21 lines
No EOL
693 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.gitea-actions-runner;
instances."${hostname}" = {
enable = true;
name = "${hostname}";
labels = [ "native:host" "nixos" ];
url = "https://git.sysctl.io";
tokenFile = /run/secrets/services/forgejo_token;
};
};
}