blob: 2b838ae9221b9ea50322228a9575eea6e550fa69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ config, ... }:
let
repo = "nocodb/nocodb";
in
{
sops.secrets = {
"github-runner/nocodb-registration-token" = { };
"github-runner/age-master-key" = { };
};
services.github-runners.kay = {
enable = true;
noDefaultLabels = true;
extraLabels = [ "nix" ];
tokenFile = config.sops.secrets."github-runner/nocodb-registration-token".path;
url = "https://github.com/${repo}";
};
systemd.services."github-runner-kay" = {
environment.SOPS_AGE_KEY_FILE = "%d/age-master-key";
serviceConfig.LoadCredential =
"age-master-key:${config.sops.secrets."github-runner/age-master-key".path}";
};
}
|