nix/nixos/common/services/forgejo-runner.nix
iFargle a513f443cf
All checks were successful
ssh-test / ssh-test (push) Successful in 24s
test
2023-12-25 10:27:42 +09:00

19 lines
No EOL
559 B
Nix

{ pkgs, config, hostname, ... }: {
# Set up the secret for the password:
sops.secrets."services/forgejo_token" = {
owner = "root";
sopsFile = ../../../secrets/secrets.yaml;
};
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";
};
};
}