From 890622750c54eaa5bb5cdad5cfadd714cbba40f3 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 5 Jun 2024 01:51:28 +0200 Subject: [PATCH] cluster/services/forge: chown dataDir --- cluster/services/forge/server.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cluster/services/forge/server.nix b/cluster/services/forge/server.nix index cd6346f..2de93b3 100644 --- a/cluster/services/forge/server.nix +++ b/cluster/services/forge/server.nix @@ -16,8 +16,11 @@ in { system.ascensions.forgejo = { - requiredBy = [ "gitea.service" ]; - incantations = i: [ ]; + requiredBy = [ "forgejo.service" ]; + before = [ "forgejo.service" ]; + incantations = i: [ + (i.execShell "chown -R forgejo:forgejo /srv/storage/private/forge") + ]; }; age.secrets = {