feat: nb performance tweaks

This commit is contained in:
2025-10-15 11:25:46 +02:00
parent a05c33ad87
commit df6465fa8a
4 changed files with 42 additions and 26 deletions

View File

@@ -17,6 +17,15 @@
boot.kernelModules = [ "amdgpu" ];
boot.extraModulePackages = [ ];
# AMD Ryzen 7 7840U optimizations
boot.kernelParams = [
"amd_pstate=active"
"amdgpu.dcdebugmask=0x10"
"amdgpu.dc=1"
"snd_hda_intel.power_save=1"
"transparent_hugepage=madvise"
];
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
@@ -38,9 +47,10 @@
options = [
"subvol=@"
"ssd"
"compress=zstd:3"
"compress=zstd:1"
"discard=async"
"noatime"
"commit=120"
];
};
@@ -51,9 +61,10 @@
options = [
"subvol=@nix-store"
"ssd"
"compress=zstd:3"
"compress=zstd:1"
"discard=async"
"noatime"
"commit=120"
];
};
@@ -64,9 +75,10 @@
options = [
"subvol=@nix-persist"
"ssd"
"compress=zstd:3"
"compress=zstd:1"
"discard=async"
"noatime"
"commit=120"
];
};
@@ -79,13 +91,11 @@
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp52s0.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
amdvlk
vaapiVdpau
libvdpau-va-gl
libva