From fcd5cadb5dc035b19b1d1667b66d96a0d9a06b07 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Fri, 11 Mar 2022 02:02:05 +0000 Subject: [PATCH] Sleep changes --- hosts/pingbox/configuration.nix | 6 ++++++ user/daniel/home.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/hosts/pingbox/configuration.nix b/hosts/pingbox/configuration.nix index 25d4f7b..7a7c893 100644 --- a/hosts/pingbox/configuration.nix +++ b/hosts/pingbox/configuration.nix @@ -17,6 +17,8 @@ powertop.enable = true; }; + boot.resumeDevice = "/dev/disk/by-label/swap"; + hardware.acpilight.enable = true; networking = { @@ -35,6 +37,10 @@ tapping = true; }; }; + + logind = { + lidSwitch = "suspend-then-hibernate"; + }; }; } diff --git a/user/daniel/home.nix b/user/daniel/home.nix index 9ea2edd..2ee8341 100644 --- a/user/daniel/home.nix +++ b/user/daniel/home.nix @@ -161,6 +161,7 @@ screen-locker = { enable = true; lockCmd = "${pkgs.i3lock}/bin/i3lock -i /home/daniel/wallpapers/lock.png"; + inactiveInterval = 60; }; };