summaryrefslogtreecommitdiff
path: root/os/kay/modules/github-runner.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2025-02-05 11:00:40 +0530
committersinanmohd <sinan@sinanmohd.com>2025-02-05 11:00:40 +0530
commit1b869e20a214935ec5b195af16d1445f2f5d88b7 (patch)
tree164c07d11a7128d86d1c6b752fe24fff0fe50cfa /os/kay/modules/github-runner.nix
parent1a99a20c55fa3e708e14ac0689dfe5681b284eb2 (diff)
kay/github-runner: init
Diffstat (limited to 'os/kay/modules/github-runner.nix')
-rw-r--r--os/kay/modules/github-runner.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/os/kay/modules/github-runner.nix b/os/kay/modules/github-runner.nix
new file mode 100644
index 0000000..4462ff2
--- /dev/null
+++ b/os/kay/modules/github-runner.nix
@@ -0,0 +1,14 @@
+{ config, ... }: let
+ secret_path = "misc/nocodb-runner-registration-token";
+ repo = "nocodb/nocodb";
+in {
+ sops.secrets.${secret_path} = {};
+
+ services.github-runners.kay = {
+ enable = true;
+ noDefaultLabels = true;
+ extraLabels = [ "nix" ];
+ tokenFile = config.sops.secrets.${secret_path}.path;
+ url = "https://github.com/${repo}";
+ };
+}