aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/sagittarius/sops.nix1
-rw-r--r--hosts/sagittarius/web/git.nix19
2 files changed, 19 insertions, 1 deletions
diff --git a/hosts/sagittarius/sops.nix b/hosts/sagittarius/sops.nix
index 08839f8..4f3cfb4 100644
--- a/hosts/sagittarius/sops.nix
+++ b/hosts/sagittarius/sops.nix
@@ -5,6 +5,7 @@
defaultSopsFile = ../../secrets/sagittarius.yaml;
secrets = {
"sorre-forgejo-access-token" = { };
+ "forgejo-runner-token" = { };
};
};
}
diff --git a/hosts/sagittarius/web/git.nix b/hosts/sagittarius/web/git.nix
index b352952..6fc6490 100644
--- a/hosts/sagittarius/web/git.nix
+++ b/hosts/sagittarius/web/git.nix
@@ -1,4 +1,4 @@
-{ config, ... }:
+{ pkgs, config, ... }:
let
cfg = config.services.forgejo;
srv = cfg.settings.server;
@@ -35,4 +35,21 @@ in
};
};
};
+
+ services.gitea-actions-runner = {
+ package = pkgs.forgejo-actions-runner;
+ instances.default = {
+ enable = true;
+ name = "monolith";
+ url = "https://git.sorre.xyz";
+ tokenFile = config.sops.secrets."forgejo-runner-token".path;
+
+ labels = [
+ "ubuntu-latest:docker://node:16-bullseye"
+ "ubuntu-22.04:docker://node:16-bullseye"
+ "ubuntu-20.04:docker://node:16-bullseye"
+ "ubuntu-18.04:docker://node:16-buster"
+ ];
+ };
+ };
}