Skip to content

Commit

Permalink
Set some stuff up for the framework
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Jan 28, 2024
1 parent dccc380 commit 65686fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
19 changes: 1 addition & 18 deletions nki-framework/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,7 @@
percentageCritical = 3;
percentageLow = 10;
};
services.tlp.enable = false;
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;
services.power-profiles-daemon.enable = true;
# powerManagement.enable = true;
# powerManagement.powertop.enable = true;
services.logind.lidSwitch = "suspend";
Expand Down
4 changes: 4 additions & 0 deletions nki-framework/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
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."/" =
{
Expand Down

0 comments on commit 65686fd

Please sign in to comment.