From 46f3666a67a17fcde958805e3ebb650de69fbc74 Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Wed, 20 Mar 2024 11:35:38 -0500 Subject: [PATCH] Sleep computer after a while --- hosts/NixDawn/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/NixDawn/configuration.nix b/hosts/NixDawn/configuration.nix index e3c3184..d465c88 100644 --- a/hosts/NixDawn/configuration.nix +++ b/hosts/NixDawn/configuration.nix @@ -65,6 +65,13 @@ devmon.enable = true; tumbler.enable = true; + logind = { + extraConfig = '' + IdleAction=hybrid-sleep + IdleActionSec=30min + ''; + }; + apcupsd = { enable = true;