diff --git a/sp-modules/gitea/module.nix b/sp-modules/gitea/module.nix index ca7d012..7f08864 100644 --- a/sp-modules/gitea/module.nix +++ b/sp-modules/gitea/module.nix @@ -146,7 +146,14 @@ in }; }; }; - systemd.services.forgejo.unitConfig.RequiresMountsFor = - lib.mkIf sp.useBinds "/volumes/${cfg.location}/gitea"; + systemd.services.forgejo = { + unitConfig.RequiresMountsFor = lib.mkIf sp.useBinds "/volumes/${cfg.location}/gitea"; + serviceConfig = { + Slice = "gitea.slice"; + }; + }; + systemd.slices.gitea = { + description = "Forgejo service slice"; + }; }; }