nix/nixos/common/services/forgejo-runner.nix
iFargle e6342b04ae
Some checks failed
ssh-test / ssh-test (push) Failing after 16s
test
2023-12-25 10:12:22 +09:00

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