53 lines
963 B
Nix
53 lines
963 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./../../modules/core
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
acpi
|
|
powertop
|
|
cpupower-gui
|
|
];
|
|
|
|
hardware.trackpoint = {
|
|
enable = true;
|
|
emulateWheel = true;
|
|
speed = 255;
|
|
sensitivity = 200;
|
|
};
|
|
|
|
services = {
|
|
# thermald.enable = true;
|
|
power-profiles-daemon.enable = true;
|
|
|
|
upower = {
|
|
enable = true;
|
|
percentageLow = 20;
|
|
percentageCritical = 5;
|
|
percentageAction = 3;
|
|
criticalPowerAction = "PowerOff";
|
|
};
|
|
|
|
auto-cpufreq = {
|
|
enable = true;
|
|
settings = {
|
|
battery = {
|
|
governor = "performance";
|
|
turbo = "auto";
|
|
};
|
|
charger = {
|
|
governor = "performance";
|
|
turbo = "auto";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
boot = {
|
|
kernelModules = ["acpi_call"];
|
|
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
|
};
|
|
}
|