28ccec9704
It begins...
21 lines
370 B
Nix
21 lines
370 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
imports = [
|
|
../modules/reusable/battery.nix
|
|
];
|
|
|
|
networking.hostName = "bumblebee";
|
|
|
|
powerManagement = {
|
|
enable = true;
|
|
cpuFreqGovernor = "powersave";
|
|
powertop.enable = true;
|
|
};
|
|
|
|
# Hibernate on low battery
|
|
laptop.onLowBattery = {
|
|
enable = true;
|
|
action = "hibernate";
|
|
thresholdPercentage = 5;
|
|
};
|
|
}
|