From b66cfc3e38a58d28734a24a80801556e2bb51f0b Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 30 Jul 2024 16:06:16 -0400 Subject: [PATCH] migrate missing if statements --- homeManagerModules/desktop/hyprland/scripts.nix | 2 +- homeManagerModules/desktop/sway/scripts.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}'"