forked from c3d2/nix-config
Overcommit for all redis'
This commit is contained in:
parent
d9f134bdaa
commit
c38581cb69
|
@ -18,8 +18,7 @@
|
||||||
boot = {
|
boot = {
|
||||||
tmp.cleanOnBoot = true;
|
tmp.cleanOnBoot = true;
|
||||||
kernel.sysctl = {
|
kernel.sysctl = {
|
||||||
# reset 60 seconds after a kernel panic
|
"kernel.panic" = 60; # reset 60 seconds after a kernel panic
|
||||||
"kernel.panic" = 60;
|
|
||||||
"net.ipv4.tcp_congestion_control" = "bbr";
|
"net.ipv4.tcp_congestion_control" = "bbr";
|
||||||
};
|
};
|
||||||
# recommend to turn off, only on by default for backwards compatibility
|
# recommend to turn off, only on by default for backwards compatibility
|
||||||
|
@ -243,6 +242,8 @@
|
||||||
stopServices = lib.optional config.services.nginx.enable "nginx"
|
stopServices = lib.optional config.services.nginx.enable "nginx"
|
||||||
++ lib.optional config.c3d2.hq.statistics.enable "collectd";
|
++ lib.optional config.c3d2.hq.statistics.enable "collectd";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
redis.vmOverCommit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
Storage=volatile
|
Storage=volatile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Required by redis
|
|
||||||
boot.kernel.sysctl."vm.overcommit_memory" = 1;
|
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user