From 5a2f0af065c95bfdc6edb59983ae2075168ca329 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 13 May 2024 17:15:50 -0500 Subject: [PATCH] feat(nix/host/luna): add github runner for nvim-ts-autotag --- hosts/luna/modules/services/github-runner.nix | 22 +++++++++++++++++++ secrets/default.nix | 1 + .../hosts/luna/gh-ts-autotag-runner-token.age | 14 ++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 hosts/luna/modules/services/github-runner.nix create mode 100644 secrets/hosts/luna/gh-ts-autotag-runner-token.age diff --git a/hosts/luna/modules/services/github-runner.nix b/hosts/luna/modules/services/github-runner.nix new file mode 100644 index 00000000..90d4621b --- /dev/null +++ b/hosts/luna/modules/services/github-runner.nix @@ -0,0 +1,22 @@ +{ config, pkgs, ... }: +{ + services.github-runners = { + # Run jobs from https://github.com/PriceHiller/nvim-ts-autotag + nvim-ts-autotag-runner = { + enable = true; + url = "https://github.com/PriceHiller/nvim-ts-autotag"; + tokenFile = config.age.secrets.gh-ts-autotag-runner-token.path; + extraPackages = with pkgs; [ + tree-sitter + fd + neovim + gnumake + gcc + curl + gnutar + git + coreutils + ]; + }; + }; +} \ No newline at end of file diff --git a/secrets/default.nix b/secrets/default.nix index a5991522..d373d028 100644 --- a/secrets/default.nix +++ b/secrets/default.nix @@ -17,6 +17,7 @@ let users-price-pw = "${secrets}/users-price-pw.age"; gitea-db-pass = "${secrets}/gitea-db-pass.age"; gitea-runner-token = "${secrets}/gitea-runner-token.age"; + gh-ts-autotag-runner-token = "${secrets}/gh-ts-autotag-runner-token.age"; }; orion = let diff --git a/secrets/hosts/luna/gh-ts-autotag-runner-token.age b/secrets/hosts/luna/gh-ts-autotag-runner-token.age new file mode 100644 index 00000000..fdb13419 --- /dev/null +++ b/secrets/hosts/luna/gh-ts-autotag-runner-token.age @@ -0,0 +1,14 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFdvUU04QSA4MTF1 +RkZnZnhUbDN6M0ZwN0I2TWZ0YlVZUjl6RjMrSDlkdkllc2MwaFJJCkM5U1E1OUoz +eTRZQzczVGJBUEJIY1NOMUV5bzIzZ3hwYnJsWm5DbVh1MFEKLT4gWDI1NTE5IHRF +MzAwZHM5TjkzOS9Ic2xIL0lvQ2pHakp5Qy9iQ2J0VFVucldxWGZWblUKcGV6aElo +c2xhVWhuQTBEWXM2M1VJbElnNlNUbTJKQzZidGhtYnU4VVoxawotPiBwaXYtcDI1 +NiBySnMxSEEgQTFabEJ5NGx2QTZNYkVLeXo2TndidEs4M0YrcGl6ZkcweFRHc2pu +UW1nOXQKeGFDVW9GWjNSK0J6Y3BnWkNiQVg0OVpZT3FSRldkaUNPQWU5NjBiY2JY +ZwotPiB7eS8vMCQsMi1ncmVhc2UgXiRzcTxPIEdjOmYzUFdJIFIKZGx6MUNpRHFV +dHlpWGw0cmU5c2xwT1ZBR1Z6WUJyTWhHK3QzVWVmL21Mc0ZyajBOYmFmL3lFRHoz +STRSMytjOQpIbkUKLS0tIFVuMVFWanVicnBlMkNjbGhtRTBQN2tMSitYMTQyWkNY +U3B3c1FNZWhRYWMKdJwFirUksXg12bxxOpBkNXLWvSj5thKFAdQsCeHXq6SiMPbE +H9TUlIVsHfxhMaq/jAe9ipTQeLdS7i1rfx8= +-----END AGE ENCRYPTED FILE-----