mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-09 10:03:12 +00:00
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{
|
|
systemd.services = {
|
|
dovecot2 = {
|
|
serviceConfig = {
|
|
CpuAccounting = true;
|
|
CpuQuota = "20%";
|
|
MemoryAccounting = true;
|
|
MemoryMax = "256M";
|
|
StartLimitIntervalSec = 500;
|
|
StartLimitBurst = 5;
|
|
BlockIOWeight = 25;
|
|
};
|
|
};
|
|
postfix = {
|
|
serviceConfig = {
|
|
CpuAccounting = true;
|
|
CpuQuota = "20%";
|
|
MemoryAccounting = true;
|
|
MemoryMax = "256M";
|
|
StartLimitIntervalSec = 500;
|
|
StartLimitBurst = 5;
|
|
BlockIOWeight = 25;
|
|
};
|
|
};
|
|
ocserv = {
|
|
serviceConfig = {
|
|
CpuAccounting = true;
|
|
CpuQuota = "70%";
|
|
MemoryAccounting = true;
|
|
MemoryMax = "512M";
|
|
StartLimitIntervalSec = 500;
|
|
StartLimitBurst = 5;
|
|
};
|
|
};
|
|
nginx = {
|
|
serviceConfig = {
|
|
CpuAccounting = true;
|
|
CpuQuota = "70%";
|
|
MemoryAccounting = true;
|
|
MemoryMax = "768M";
|
|
StartLimitIntervalSec = 500;
|
|
StartLimitBurst = 5;
|
|
BlockIOWeight = 10;
|
|
};
|
|
};
|
|
};
|
|
}
|