From ff11165f0480a6b1d1ddf1bc4f0912aafa2cf960 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 2 Jan 2025 14:38:42 +0400 Subject: [PATCH] do something to forgejo service --- modules/server/services/forgejo.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/server/services/forgejo.nix b/modules/server/services/forgejo.nix index 6edc5f43..bde07db1 100644 --- a/modules/server/services/forgejo.nix +++ b/modules/server/services/forgejo.nix @@ -82,10 +82,13 @@ in { journalmatch = _SYSTEMD_UNIT=forgejo.service ''; }; - systemd.services.forgejo.serviceConfig = { - AmbientCapabilities = lib.mkForce [ "CAP_NET_BIND_SERVICE" ]; - CapabilityBoundingSet = lib.mkForce [ "CAP_NET_BIND_SERVICE" ]; - PrivateUsers = lib.mkForce false; + systemd.services.forgejo = { + after = [ "postgresql.service" "redis-forgejo.service" ]; + serviceConfig = { + AmbientCapabilities = lib.mkForce [ "CAP_NET_BIND_SERVICE" ]; + CapabilityBoundingSet = lib.mkForce [ "CAP_NET_BIND_SERVICE" ]; + PrivateUsers = lib.mkForce false; + }; }; }; }