From 40db1191e357426a80213c6cfc6428a5723e0be6 Mon Sep 17 00:00:00 2001 From: Jurn Wubben Date: Wed, 9 Jul 2025 21:01:22 +0200 Subject: [PATCH] BUG: syntax error --- system/desktop/hyprland.nix | 9 ++++----- system/desktop/plasma6.nix | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/system/desktop/hyprland.nix b/system/desktop/hyprland.nix index 12b0c29..ec70020 100644 --- a/system/desktop/hyprland.nix +++ b/system/desktop/hyprland.nix @@ -9,11 +9,10 @@ active = cfg && desktop.activeDesktop == "hyprland"; ifActive = x: lib.mkIf active x; in { - specialisation.hyprland.configuration = - lib.mkIf cfg - && !active { - niksos.desktop.activeDesktop = lib.mkForce "hyprland"; - }; + specialisation.hyprland.configuration = lib.mkIf (cfg + && !active) { + niksos.desktop.activeDesktop = lib.mkForce "hyprland"; + }; programs = ifActive { hyprland = { diff --git a/system/desktop/plasma6.nix b/system/desktop/plasma6.nix index c524bbb..826f930 100644 --- a/system/desktop/plasma6.nix +++ b/system/desktop/plasma6.nix @@ -9,11 +9,10 @@ active = cfg && desktop.activeDesktop == "kde"; ifActive = x: lib.mkIf active x; in { - specialisation.kde.configuration = - lib.mkIf cfg - && !active { - niksos.desktop.activeDesktop = lib.mkForce "kde"; - }; + specialisation.kde.configuration = lib.mkIf (cfg + && !active) { + niksos.desktop.activeDesktop = lib.mkForce "kde"; + }; services = ifActive { greetd.settings = let