totoro: give postgresql more resources to play with
This commit is contained in:
parent
0621fbfbf1
commit
84c965f7cd
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ in {
|
|||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
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;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
||||
|
|
Loading…
Reference in a new issue