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

20
flake.lock generated
View file

@ -886,11 +886,11 @@
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1717086148,
"narHash": "sha256-rZyQv0MdYX+tYoGhc5mV4iZb+kGqA93+k3R1BIRiwXk=",
"lastModified": 1717171539,
"narHash": "sha256-Sr7x7scl6VGOD/+74wyZaKF2asiidkG/9+Me5vmEy84=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "fe31f9e863e643327e8a5fffa0f4aae9288fd048",
"rev": "8d9517ad34e62b04744f1586838d4565939172b4",
"type": "github"
},
"original": {
@ -1179,11 +1179,11 @@
"systems": "systems_10"
},
"locked": {
"lastModified": 1715054505,
"narHash": "sha256-0A5f0NgIqdUuGejpPGcAPc7gRr0cFP+gzq9DAzdJsPs=",
"lastModified": 1717172081,
"narHash": "sha256-tjpxhEr67pK7xE70gbNlMCbo9BCiJVkurTu+VsVYQz8=",
"ref": "refs/heads/main",
"rev": "0776e48962c7775c156f4419e0156b33f265dfc1",
"revCount": 6,
"rev": "26484d6b46369590be8d341688feb5af2377b5de",
"revCount": 10,
"type": "git",
"url": "https://git.zackster.zip/zack/resume"
},
@ -1580,11 +1580,11 @@
]
},
"locked": {
"lastModified": 1717093735,
"narHash": "sha256-cah3EMtjmNvFCm9vbtNRyVsGpGjVzd5wF4JYG1TebuA=",
"lastModified": 1717171161,
"narHash": "sha256-lSb3GoBbXh8nAb6ICA/Nf3Y2rTJ+0HfxKyC9KxAx38I=",
"owner": "Alexays",
"repo": "Waybar",
"rev": "1a1a61e917af09ae4e505b61aa8f0e2da7a649ef",
"rev": "7163752aa07f145e5951e2388b7693e19fc5d446",
"type": "github"
},
"original": {

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Ïçþ^ 

View file

@ -22,6 +22,10 @@
networking.hostName = "pluto"; # Define your hostname.
services.web.nginx.enable = true;
services.github-runner = {
enable = true;
url = "https://github.com/zackartz/nixos-dots";
};
sites = {
cv.enable = true;
gitlab.enable = true;