diff options
Diffstat (limited to 'users/glittershark/system/system/modules/laptop.nix')
-rw-r--r-- | users/glittershark/system/system/modules/laptop.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/users/glittershark/system/system/modules/laptop.nix b/users/glittershark/system/system/modules/laptop.nix new file mode 100644 index 000000000000..8c09f3a44266 --- /dev/null +++ b/users/glittershark/system/system/modules/laptop.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./reusable/battery.nix + ]; + + laptop.onLowBattery.enable = true; + + services.logind.extraConfig = '' + HandlePowerKey=hibernate + ''; +} |