totoro: give postgresql more resources to play with

This commit is contained in:
Luke Granger-Brown 2021-11-18 20:40:28 +00:00
parent 0621fbfbf1
commit 84c965f7cd

View file

@ -46,6 +46,9 @@ in {
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
services.postgresql.package = pkgs.postgresql_13; services.postgresql.package = pkgs.postgresql_13;
services.postgresql.settings.shared_buffers = "16GB";
services.postgresql.settings.work_mem = "1GB";
services.postgresql.settings.maintenance_work_mem = "1GB";
nix.maxJobs = lib.mkDefault 8; nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; powerManagement.cpuFreqGovernor = lib.mkDefault "performance";