snix/users/aspen/system/system/modules/laptop.nix
Aspen Smith 01af37c532 chore(aspen/system): Turn off disableWhileTyping for libinput
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
2024-08-20 02:27:13 +00:00

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;
}