migrate missing if statements

This commit is contained in:
Aly Raffauf 2024-07-30 16:06:16 -04:00
parent 35bb5107ad
commit b66cfc3e38
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ in {
timeouts =
["timeout 120 '${lib.getExe pkgs.brightnessctl} -s set 10' resume '${lib.getExe pkgs.brightnessctl} -r'"]
++ (
if cfg.desktop.hyprland.autoSuspend
if cfg.desktop.autoSuspend
then ["timeout 600 '${lib.getExe' pkgs.systemd "systemctl"} suspend'"]
else [
"timeout 600 '${lib.getExe pkgs.swaylock}'"

View file

@ -11,7 +11,7 @@ in {
timeouts =
["timeout 120 '${lib.getExe pkgs.brightnessctl} -s set 10' resume '${lib.getExe pkgs.brightnessctl} -r'"]
++ (
if cfg.desktop.sway.autoSuspend
if cfg.desktop.autoSuspend
then ["timeout 600 '${lib.getExe' pkgs.systemd "systemctl"} suspend'"]
else [
"timeout 600 '${lib.getExe pkgs.swaylock}'"