mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-25 20:41:27 +00:00
fix resources/limits.txt but do not use them for now
This commit is contained in:
parent
391e41e8a4
commit
e45224d67f
|
@ -13,7 +13,7 @@
|
||||||
./passmgr/bitwarden.nix
|
./passmgr/bitwarden.nix
|
||||||
./webserver/nginx.nix
|
./webserver/nginx.nix
|
||||||
./webserver/memcached.nix
|
./webserver/memcached.nix
|
||||||
./resources/limits.nix
|
# ./resources/limits.nix
|
||||||
./videomeet/jitsi.nix
|
./videomeet/jitsi.nix
|
||||||
./git/gitea.nix
|
./git/gitea.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -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;
|
BlockIOWeight = 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;
|
BlockIOWeight = 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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue