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
|
|
@ -8,7 +8,7 @@
|
|||
imports = [
|
||||
./stylix.nix
|
||||
./nixvim/nixvim.nix
|
||||
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
|
@ -36,26 +36,11 @@
|
|||
LC_TELEPHONE = "de_DE.UTF-8";
|
||||
LC_TIME = "de_DE.UTF-8";
|
||||
};
|
||||
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;
|
||||
};
|
||||
};
|
||||
services.xserver.xkb = {
|
||||
layout = "eu";
|
||||
variant = "";
|
||||
};
|
||||
services.displayManager.ly.enable = true;
|
||||
powerManagement.powertop.enable = true;
|
||||
programs.hyprland = {
|
||||
package = pkgs.hyprland;
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue