home/swayidle: fix command syntax

This commit is contained in:
Aly Raffauf 2024-08-02 16:17:36 -04:00
parent 52965c7da8
commit 65df61f650

View file

@ -41,7 +41,7 @@ in {
]
++ lib.optional cfg.desktop.autoSuspend {
timeout = 600;
command = "sleep 2 && ${lib.getExe' pkgs.systemd "systemctl"} suspend'";
command = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
}
++ lib.optional (!cfg.desktop.autoSuspend)
{