Set some stuff up for the framework

This commit is contained in:
Natsu Kagami 2024-01-28 15:08:20 +01:00
parent dccc3802d7
commit 65686fdf16
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 5 additions and 18 deletions

View file

@ -26,24 +26,7 @@
percentageCritical = 3; percentageCritical = 3;
percentageLow = 10; percentageLow = 10;
}; };
services.tlp.enable = false; services.power-profiles-daemon.enable = true;
services.tlp.settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 30;
PLATFORM_PROFILE_ON_AC = "performance";
PLATFORM_PROFILE_ON_BAT = "low-power";
USB_AUTOSUSPEND = 0;
};
services.power-profiles-daemon.enable = false;
# powerManagement.enable = true; # powerManagement.enable = true;
# powerManagement.powertop.enable = true; # powerManagement.powertop.enable = true;
services.logind.lidSwitch = "suspend"; services.logind.lidSwitch = "suspend";

View file

@ -13,6 +13,10 @@
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.kernelParams = [
# See https://community.frame.work/t/tracking-graphical-corruption-in-fedora-39-amd-3-03-bios/39073/143
"amdgpu.sg_display=0"
];
fileSystems."/" = fileSystems."/" =
{ {