Skip to content

Commit ee134fe

Browse files
committed
imp: adjust memory profile of spongix service
1 parent 7683d5b commit ee134fe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nix/metal/bitteProfile/spongix.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
}: {
88
imports = [inputs.spongix.nixosModules.spongix];
99

10+
systemd.services.spongix.serviceConfig = {
11+
Restart = lib.mkForce "always";
12+
RestartSec = lib.mkForce "30s";
13+
OOMScoreAdjust = 1000;
14+
MemoryAccounting = "true";
15+
MemoryHigh = "60%";
16+
MemoryMax = "70%";
17+
};
18+
1019
services.spongix = {
1120
enable = true;
1221
cacheDir = "/var/lib/spongix";

0 commit comments

Comments
 (0)