xmrig-auto-pause: fix

This commit is contained in:
2026-04-06 13:11:54 -04:00
parent a12dcb01ec
commit 7afd1f35d2
3 changed files with 111 additions and 7 deletions

View File

@@ -21,12 +21,14 @@ lib.mkIf config.services.xmrig.enable {
"AF_UNIX" # systemctl talks to systemd over D-Bus unix socket
];
MemoryDenyWriteExecute = true;
StateDirectory = "xmrig-auto-pause";
};
environment = {
POLL_INTERVAL = "3";
GRACE_PERIOD = "15";
CPU_THRESHOLD = "5";
STARTUP_COOLDOWN = "10";
STATE_DIR = "/var/lib/xmrig-auto-pause";
};
};
}