nix/nixos/common/services/forgejo-runner.nix

16 lines
445 B
Nix
Raw Normal View History

2023-12-06 06:47:34 +01:00
{ pkgs, config, hostname, ... }: {
2023-12-06 06:51:24 +01:00
# Set up the secret for the password:
sops.secrets."services/forgejo_token" = {
2023-12-06 06:53:24 +01:00
owner = "root";
2023-12-06 06:47:34 +01:00
sopsFile = ../../../secrets/secrets.yaml;
};
2023-12-06 07:08:59 +01:00
services.forgejo-actions-runner.instances."${hostname}" = {
2023-12-06 06:47:34 +01:00
enable = true;
name = "${hostname}";
2023-12-06 06:49:06 +01:00
labels = [ "nixos" ];
2023-12-06 06:47:34 +01:00
url = "https://git.sysctl.io";
2023-12-06 06:52:11 +01:00
tokenFile = "/run/secrets/services/forgejo_token";
2023-12-06 06:47:34 +01:00
};
}