From 4cacb69c9c8edb63c91c30e5596ea643b7704eb7 Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Mon, 22 Jun 2026 21:14:33 +0200 Subject: [PATCH] Nonsense on top of Nonsense! --- nixos/roles/gitea.nix | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/nixos/roles/gitea.nix b/nixos/roles/gitea.nix index f35a87b..6be6a7a 100644 --- a/nixos/roles/gitea.nix +++ b/nixos/roles/gitea.nix @@ -224,19 +224,6 @@ in }; }; - system.activationScripts.gitea-runner-age-key = { - deps = [ - "users" - "groups" - ]; - text = '' - mkdir -p /var/lib/gitea-runner/.config/sops/age - chown -R gitea-runner:gitea-runner /var/lib/gitea-runner - cp /home/${primaryUser}/.config/nix/secrets/keys.txt /var/lib/gitea-runner/.config/sops/age/keys.txt - chmod 600 /var/lib/gitea-runner/.config/sops/age/keys.txt - ''; - }; - users = { users = { gitea = { @@ -245,18 +232,11 @@ in home = "/var/lib/gitea"; createHome = true; }; - gitea-runner = { - isSystemUser = true; - group = "gitea-runner"; - home = "/var/lib/gitea-runner"; - createHome = true; - homeMode = "750"; - }; + postgres.extraGroups = [ "gitea" ]; }; groups = { gitea = { }; - gitea-runner = { }; }; };