From 4f50ad500f2d0be1b640857bb7bfb69bf96f8198 Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Sat, 24 Jan 2026 17:07:42 +0100 Subject: [PATCH] forgejo: please work --- hosts/thegeneralist-central/forgejo/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/thegeneralist-central/forgejo/default.nix b/hosts/thegeneralist-central/forgejo/default.nix index 73826c7..5e6be59 100644 --- a/hosts/thegeneralist-central/forgejo/default.nix +++ b/hosts/thegeneralist-central/forgejo/default.nix @@ -133,5 +133,12 @@ in publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOkFvw9+AispgqwaYg3ksAZTHJgkCDwFTbWzUh/pVcAS"; }; + # Avoid /var/lib/private so the runner can write its state. + systemd.services.gitea-runner-central.serviceConfig = { + DynamicUser = false; + StateDirectory = "gitea-runner/central"; + StateDirectoryMode = "0755"; + }; + networking.firewall.allowedTCPPorts = [ 2222 ]; }