I... actually really hate this, it turns out. Plus it breaks video games, lol. Change-Id: I4b86e38ee78f5f3b6ffec5e7cc4f1dc054d91c56 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12256 Reviewed-by: aspen <root@gws.fyi> Autosubmit: aspen <root@gws.fyi> Tested-by: BuildkiteCI
25 lines
490 B
Nix
25 lines
490 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
services.logind = {
|
|
powerKey = "hibernate";
|
|
powerKeyLongPress = "poweroff";
|
|
lidSwitch = "suspend-then-hibernate";
|
|
lidSwitchExternalPower = "ignore";
|
|
};
|
|
|
|
systemd.sleep.extraConfig = ''
|
|
HibernateDelaySec=30m
|
|
SuspendState=mem
|
|
'';
|
|
|
|
services.tlp.enable = true;
|
|
|
|
services.upower = {
|
|
enable = true;
|
|
criticalPowerAction = "Hibernate";
|
|
percentageAction = 3;
|
|
};
|
|
|
|
services.libinput.touchpad.naturalScrolling = true;
|
|
}
|