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

@ -43,6 +43,10 @@
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
zramSwap.enable = true;
zramSwap.memoryPercent = 300;
systemd.oomd.enable = true;
console = {
keyMap = lib.mkDefault "fr";
font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";

View file

@ -39,8 +39,6 @@
swapDevices = [ { device = "/dev/disk/by-uuid/bb8fa9ef-9b8f-413d-913a-6c891649a954"; } ];
zramSwap.enable = true;
hardware = {
bluetooth = {
enable = true;

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";
}