move power management options to laptop flake
This commit is contained in:
parent
d744cfe4ee
commit
782387d9dd
4 changed files with 16 additions and 106 deletions
22
flake.nix
22
flake.nix
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue