Tweak performance settings

This commit is contained in:
Paul-Henri Froidmont 2025-09-09 01:40:56 +02:00
parent b4c0b9c09d
commit da3cefab0d
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
3 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,4 @@
{
config,
lib,
pkgs,
modulesPath,
@ -49,7 +48,10 @@
swapDevices = [ { device = "/dev/disk/by-uuid/f714775c-b5af-4c0c-8330-999b43db4794"; } ];
zramSwap.enable = true;
powerManagement = {
cpuFreqGovernor = "performance";
powertop.enable = true;
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
@ -66,7 +68,7 @@
];
};
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.amd.updateMicrocode = true;
services.resolved.dnssec = "false";
}