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

19 lines
553 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
2023-12-06 07:14:59 +01:00
# Set up the secret for the password:
sops.secrets."services/forgejo_token" = {
2023-12-25 02:12:22 +01:00
owner = "root";
2023-12-06 07:14:59 +01:00
sopsFile = ../../../secrets/secrets.yaml;
};
2023-12-06 06:47:34 +01:00
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";
};
2023-12-06 06:47:34 +01:00
};
}