From e57e8cdfe59e1407ad73c192bd9f7f2b0b5005b5 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Thu, 8 Jan 2026 16:05:52 +0100 Subject: refactor(desktop): conditionally import modules based on useHomeManager --- modules/hosts/desktop/default.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'modules/hosts/desktop/default.nix') diff --git a/modules/hosts/desktop/default.nix b/modules/hosts/desktop/default.nix index 137b68c..7d7f3ae 100644 --- a/modules/hosts/desktop/default.nix +++ b/modules/hosts/desktop/default.nix @@ -1,14 +1,17 @@ -{ ... }: +{ useHomeManager ? true, ... }: { imports = [ - #./sway - #./dunst.nix - #./waybar.nix - #./gnome + # NixOS-only modules (no home-manager) ./cinnamon + ./gnome ./kde - #./labwc - #./hyprland - ]; + ] ++ (if useHomeManager then [ + # Modules that require home-manager + ./hyprland + ./labwc + ./sway + ./dunst.nix + ./waybar.nix + ] else [ ]); } -- cgit v1.3.1