Add xautolock
This commit is contained in:
parent
35285b632b
commit
80431b113d
15
desktop.nix
15
desktop.nix
@ -10,6 +10,21 @@ in {
|
|||||||
services.xserver.windowManager.xmonad.enable = true;
|
services.xserver.windowManager.xmonad.enable = true;
|
||||||
services.xserver.windowManager.xmonad.enableContribAndExtras = true;
|
services.xserver.windowManager.xmonad.enableContribAndExtras = true;
|
||||||
|
|
||||||
|
services.xserver.xautolock = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
time = 5; # minutes
|
||||||
|
locker = "${pkgs.i3lock}/bin/i3lock -n -c 000000";
|
||||||
|
|
||||||
|
notify = 10; # seconds
|
||||||
|
notifier = "${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\"";
|
||||||
|
|
||||||
|
killtime = 20; # minutes
|
||||||
|
killer = "${pkgs.systemd}/bin/systemctl suspend";
|
||||||
|
|
||||||
|
extraOptions = [ "-secure" ];
|
||||||
|
};
|
||||||
|
|
||||||
services.redshift = {
|
services.redshift = {
|
||||||
enable = true;
|
enable = true;
|
||||||
latitude = secrets.latitude;
|
latitude = secrets.latitude;
|
||||||
|
Loading…
Reference in New Issue
Block a user