nix/nixos/common/services/forgejo-runner.nix
iFargle 2dc4664051
Some checks failed
ssh-test / ssh-test (push) Failing after 17s
test
2023-12-25 10:29:42 +09:00

19 lines
No EOL
567 B
Nix

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