move power management options to laptop flake

This commit is contained in:
lucy 2026-07-18 21:05:06 +02:00
commit 782387d9dd
4 changed files with 16 additions and 106 deletions

View file

@ -57,10 +57,21 @@
}
({ lib, ... }: {
networking.hostName = lib.mkForce "seele";
imports = [
./hardware-configuration-laptop.nix
];
powerManagement.powertop.enable = true;
services.upower.enable = true;
services.tlp = {
enable = true;
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 = 20;
};
};
})
];
@ -82,9 +93,6 @@
}
({ pkgs, lib, ... }: {
imports = [
./hardware-configuration-desktop.nix
];
networking.hostName = lib.mkForce "nerv";
environment.systemPackages = [
# For debugging and troubleshooting Secure Boot.