add github_runner

This commit is contained in:
zackartz 2024-05-31 14:41:47 -04:00
parent f784bb8866
commit d76a7b146b
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
4 changed files with 59 additions and 10 deletions

View file

@ -0,0 +1,32 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.services.gh;
sec = config.age.secrets;
group = config.services.github-runner.runnerGroup;
in {
options.services.gh = with types; {
enable = mkBoolOpt false "Enable GitHub Actions Runner";
};
config = mkIf cfg.enable {
age.secrets = {
github_runner = {
file = ./sec/github_runner.age;
group = group;
};
};
services.github-runner = {
enable = true;
url = "https://github.com/zackartz/nixos-dots";
tokenFile = sec.github_runner.path;
};
};
}

View file

@ -0,0 +1,13 @@
age-encryption.org/v1
-> ssh-ed25519 gWMdNg EjRmNXb7lLQoFA5ZlfiSLzzsyl9xSfjBNbPQeG/fmzY
FdDaNGIdsjaQ/h923KRxoC+JmBPA7bi3PuOGANuvXk4
-> ssh-ed25519 s+NXzQ PtVzYsZZVonwo+xJNOxWCygAKGdbzuW1BkiOEh4KoAk
hIgkkB0zsqsLEPL9xv2otggJAKYB/hRppi9TnZRojGQ
-> ssh-ed25519 yEtzbQ S3/WmecK9Z17ucdNAh0di0QSINm9PAB8I9aciWUG2hM
6dSviN+EM8cse082IKzj672kgxt4zVk9sAUjm7Y3CGw
-> ssh-ed25519 RMNffg 6vLt65MrQj4aTXqf2LEemKJM9bkXceSMUbvZyXlkjRw
AnreGe1tkddCE2uIClEXyM+pZVFx5I1fLqFLTUTkqr8
--- ls56auZRJT5kOLrV1jItAxsMBtFw/mR/okAFHeStSa0
d~¶Î
U;ž6"=Â}íã†ö‘øÒ„æ=ÅãÈ´Ö± ­<50>\—PžŸéši9
ûvÏçþ^