fix typos in resource/limits.nix

The whole file was useless, because systemd ignores directive names,
which begin with lower-case letter. Also `BlockIOWeigth` typo fixed.
systemd-limits
Alexander Tomokhov 2023-06-28 19:21:04 +04:00
parent 65b5a19777
commit a21da91f86
1 changed files with 27 additions and 28 deletions

View File

@ -1,47 +1,46 @@
{ pkgs, ... }:
{ {
systemd.services = { systemd.services = {
dovecot2 = { dovecot2 = {
serviceConfig = { serviceConfig = {
cpuAccounting = true; CpuAccounting = true;
cpuQuota = "20%"; CpuQuota = "20%";
memoryAccounting = true; MemoryAccounting = true;
memoryMax = "256M"; MemoryMax = "256M";
startLimitIntervalSec = 500; StartLimitIntervalSec = 500;
startLimitBurst = 5; StartLimitBurst = 5;
blockIOWeigth = 25; BlockIOWeigth = 25;
}; };
}; };
postfix = { postfix = {
serviceConfig = { serviceConfig = {
cpuAccounting = true; CpuAccounting = true;
cpuQuota = "20%"; CpuQuota = "20%";
memoryAccounting = true; MemoryAccounting = true;
memoryMax = "256M"; MemoryMax = "256M";
startLimitIntervalSec = 500; StartLimitIntervalSec = 500;
startLimitBurst = 5; StartLimitBurst = 5;
blockIOWeigth = 25; BlockIOWeigth = 25;
}; };
}; };
ocserv = { ocserv = {
serviceConfig = { serviceConfig = {
cpuAccounting = true; CpuAccounting = true;
cpuQuota = "70%"; CpuQuota = "70%";
memoryAccounting = true; MemoryAccounting = true;
memoryMax = "512M"; MemoryMax = "512M";
startLimitIntervalSec = 500; StartLimitIntervalSec = 500;
startLimitBurst = 5; StartLimitBurst = 5;
}; };
}; };
nginx = { nginx = {
serviceConfig = { serviceConfig = {
cpuAccounting = true; CpuAccounting = true;
cpuQuota = "70%"; CpuQuota = "70%";
memoryAccounting = true; MemoryAccounting = true;
memoryMax = "768M"; MemoryMax = "768M";
startLimitIntervalSec = 500; StartLimitIntervalSec = 500;
startLimitBurst = 5; StartLimitBurst = 5;
blockIOWeigth = 10; BlockIOWeight = 10;
}; };
}; };
}; };