about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-03-09 22:03:04 +0900
committersefidel <contact@sefidel.net>2023-03-09 22:03:04 +0900
commit8647eadecd09e3742b8e3c067559e1d0e35ca757 (patch)
tree16b4c7c7d1c562db8875b3d15d41800ff7c05ffb /home
parent0d84c3aa26eca53abc1b2fb066b02e69d8da374f (diff)
downloadnixrc-8647eadecd09e3742b8e3c067559e1d0e35ca757.tar.gz
nixrc-8647eadecd09e3742b8e3c067559e1d0e35ca757.zip
feat(home/base): setup suspend on swayidle
Diffstat (limited to 'home')
-rw-r--r--home/profiles/base/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix
index 07f97ab..daae8db 100644
--- a/home/profiles/base/default.nix
+++ b/home/profiles/base/default.nix
@@ -296,6 +296,10 @@ in
             command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'";
             resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'";
           }
+          {
+            timeout = 900;
+            command = "${pkgs.systemd}/bin/systemctl suspend";
+          }
         ];
       };