From ce570b6ed3ec26a9d476948c78511f1dc560c3e9 Mon Sep 17 00:00:00 2001 From: notohh Date: Sat, 7 Oct 2023 17:03:11 -0400 Subject: [PATCH] yuki: init forgejo runner --- hosts/yuki/services/default.nix | 1 + hosts/yuki/services/forgejo-runners.nix | 33 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 hosts/yuki/services/forgejo-runners.nix diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index feb1cd0..2f05bbd 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -8,5 +8,6 @@ ./dashdot.nix ./jellyfin.nix ./neko.nix + ./forgejo-runners.nix ]; } diff --git a/hosts/yuki/services/forgejo-runners.nix b/hosts/yuki/services/forgejo-runners.nix new file mode 100644 index 0000000..6b8c433 --- /dev/null +++ b/hosts/yuki/services/forgejo-runners.nix @@ -0,0 +1,33 @@ +{ + pkgs, + config, + ... +}: { + sops.secrets.forgejo-runner-token = {}; + services.gitea-actions-runner = { + package = pkgs.forgejo-actions-runner; + instances.main = { + settings = { + container = { + network = "host"; + }; + }; + enable = true; + name = config.networking.hostName; + url = "https://git.flake.sh"; + token = "gdeEbeUTifa1nK7EfRgBmvm6XRdQE1zZzAatBRSC"; + labels = [ + "debian-latest:docker://node:18-bullseye" + "ubuntu-latest:docker://node:18-bullseye" + #"native:host" + ]; + hostPackages = with pkgs; [ + bash + curl + coreutils + wget + gitMinimal + ]; + }; + }; +}