diff --git a/homeManagerModules/desktop/hyprland/scripts.nix b/homeManagerModules/desktop/hyprland/scripts.nix index 04e9210e..5cd0abb9 100644 --- a/homeManagerModules/desktop/hyprland/scripts.nix +++ b/homeManagerModules/desktop/hyprland/scripts.nix @@ -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}'" diff --git a/homeManagerModules/desktop/sway/scripts.nix b/homeManagerModules/desktop/sway/scripts.nix index b49061ef..add1073d 100644 --- a/homeManagerModules/desktop/sway/scripts.nix +++ b/homeManagerModules/desktop/sway/scripts.nix @@ -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}'"