blob: a1cd3ffa143d41dce02cdd6e0efba28baeb68935 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ 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;
};
}
|