nixos/system/laptop.nix
Evie Litherland-Smith 9e92c21fbd Move some things into separate files, add laptop power management
Move autoUpgrade, nix registry and stylix settings to their own files, only
import autoUpgrade on desktops and server

Add laptop system file to control power management

Move some bits from flake.nix to default.nix and desktop.nix where
appropriate
2024-02-25 06:32:13 +00:00

17 lines
289 B
Nix

{...}: {
powerManagement.enable = true;
services.auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
};
}