This commit is contained in:
Sridhar Ratnakumar 2021-04-10 19:51:49 -04:00
parent 4c17799aeb
commit cc0413466d
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
services.xserver.xautolock = {
enable = true;
time = 5; # mins
# Not sure if some modes are the cause of system freeze
# So deterministically pick one.
locker = "${pkgs.xlockmore}/bin/xlock -mode space";
# Suspend after sometime (enable this after things are okay)
killtime = 20; # mins
killer = "${pkgs.systemd}/bin/systemctl suspend";
};
}

View file

@ -7,6 +7,7 @@
./screencapture.nix
./fonts.nix
./touchpad-trackpoint.nix
./autolock.nix
# WMish things
./xmonad