nixos/system/laptop.nix

21 lines
450 B
Nix
Raw Normal View History

{ pkgs, username, ... }:
2024-07-30 15:06:34 +01:00
{
imports = [ ./desktop.nix ];
home-manager.users.${username}.imports = [ ./home/laptop.nix ];
environment.systemPackages = [ pkgs.acpi ];
powerManagement.enable = true;
services.auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
};
}