try to move forgejo to a slice

This commit is contained in:
Inex Code 2024-07-27 02:26:23 +03:00
parent b6ed70a058
commit d7f283468a

View file

@ -146,7 +146,14 @@ in
}; };
}; };
}; };
systemd.services.forgejo.unitConfig.RequiresMountsFor = systemd.services.forgejo = {
lib.mkIf sp.useBinds "/volumes/${cfg.location}/gitea"; unitConfig.RequiresMountsFor = lib.mkIf sp.useBinds "/volumes/${cfg.location}/gitea";
serviceConfig = {
Slice = "gitea.slice";
};
};
systemd.slices.gitea = {
description = "Forgejo service slice";
};
}; };
} }