From a21da91f868de07311f00270beef2bff5175118e Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Wed, 28 Jun 2023 19:21:04 +0400 Subject: [PATCH] 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. --- resources/limits.nix | 55 ++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/resources/limits.nix b/resources/limits.nix index 5d341cb..7bce5a5 100644 --- a/resources/limits.nix +++ b/resources/limits.nix @@ -1,47 +1,46 @@ -{ pkgs, ... }: { systemd.services = { dovecot2 = { serviceConfig = { - cpuAccounting = true; - cpuQuota = "20%"; - memoryAccounting = true; - memoryMax = "256M"; - startLimitIntervalSec = 500; - startLimitBurst = 5; - blockIOWeigth = 25; + CpuAccounting = true; + CpuQuota = "20%"; + MemoryAccounting = true; + MemoryMax = "256M"; + StartLimitIntervalSec = 500; + StartLimitBurst = 5; + BlockIOWeigth = 25; }; }; postfix = { serviceConfig = { - cpuAccounting = true; - cpuQuota = "20%"; - memoryAccounting = true; - memoryMax = "256M"; - startLimitIntervalSec = 500; - startLimitBurst = 5; - blockIOWeigth = 25; + CpuAccounting = true; + CpuQuota = "20%"; + MemoryAccounting = true; + MemoryMax = "256M"; + StartLimitIntervalSec = 500; + StartLimitBurst = 5; + BlockIOWeigth = 25; }; }; ocserv = { serviceConfig = { - cpuAccounting = true; - cpuQuota = "70%"; - memoryAccounting = true; - memoryMax = "512M"; - startLimitIntervalSec = 500; - startLimitBurst = 5; + 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; - blockIOWeigth = 10; + CpuAccounting = true; + CpuQuota = "70%"; + MemoryAccounting = true; + MemoryMax = "768M"; + StartLimitIntervalSec = 500; + StartLimitBurst = 5; + BlockIOWeight = 10; }; }; };