about summary refs log tree commit diff
path: root/users/grfn/system/system/machines/bumblebee.nix
blob: 0fec214092559f54aa148819727edab9a4a28c30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ 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;
  };

  services.xserver.xkbOptions = "caps:swapescape";
}