nix/nixos/common/services/forgejo-runner.nix
2023-12-06 14:50:17 +09:00

14 lines
No EOL
384 B
Nix

{ pkgs, config, hostname, ... }: {
sops.secrets."forgejo_token" = {
owner = "root";
sopsFile = ../../../secrets/secrets.yaml;
};
services.gitea-actions-runner.instances."${hostname}" = {
enable = true;
name = "${hostname}";
labels = [ "nixos" ];
url = "https://git.sysctl.io";
tokenFile = "/run/secrets/forgejo_token";
};
}