mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 17:29:18 -05:00
migrate missing if statements
This commit is contained in:
parent
35bb5107ad
commit
b66cfc3e38
|
@ -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}'"
|
||||
|
|
|
@ -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}'"
|
||||
|
|
Loading…
Reference in a new issue