From 71bcdffd87aa77dae24ba437de12290d327ce4e7 Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 25 Dec 2023 10:10:46 +0900 Subject: [PATCH] Testing forgejo-runner on framework-server --- nixos/common/services/forgejo-runner.nix | 18 ++++++++++-------- nixos/hosts/framework-server/default.nix | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/nixos/common/services/forgejo-runner.nix b/nixos/common/services/forgejo-runner.nix index ee1f913f..85a0a184 100644 --- a/nixos/common/services/forgejo-runner.nix +++ b/nixos/common/services/forgejo-runner.nix @@ -2,16 +2,18 @@ # Set up the secret for the password: sops.secrets."services/forgejo_token" = { - owner = "root"; + owner = "gitea-runner"; sopsFile = ../../../secrets/secrets.yaml; }; - services.gitea-actions-runner.package = pkgs.forgejo-actions-runner; - services.gitea-actions-runner.instances."${hostname}" = { - enable = true; - name = "${hostname}"; - labels = [ "host://-self-hosted" ]; - url = "https://git.sysctl.io"; - tokenFile = "/run/secrets/services/forgejo_token"; + services.gitea-actions-runner = { + package = pkgs.forgejo-actions-runner; + instances."${hostname}" = { + enable = true; + name = "${hostname}"; + labels = [ "native:host" ]; + url = "https://git.sysctl.io"; + tokenFile = "/run/secrets/services/forgejo_token"; + }; }; } \ No newline at end of file diff --git a/nixos/hosts/framework-server/default.nix b/nixos/hosts/framework-server/default.nix index 9825c35e..9537d051 100644 --- a/nixos/hosts/framework-server/default.nix +++ b/nixos/hosts/framework-server/default.nix @@ -7,6 +7,7 @@ ../../common/services/fwupd.nix ../../common/modules/ssh-luks.nix ../../common/services/docker.nix + ../../common/services/forgejo-runner.nix ./disks.nix ./builder.nix ./wireguard.nix