From 6c6f54eb004a5839db97e7098f8ea89b1230e889 Mon Sep 17 00:00:00 2001 From: tulg Date: Sat, 28 Feb 2026 18:54:33 +0300 Subject: [PATCH] run 2 --- modules/home-manager/desktop/default.nix | 32 ++++++++++++++---------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/modules/home-manager/desktop/default.nix b/modules/home-manager/desktop/default.nix index c1a4d86..c2a77d1 100644 --- a/modules/home-manager/desktop/default.nix +++ b/modules/home-manager/desktop/default.nix @@ -1,15 +1,21 @@ -{lib, ...}: { - options = { - tulg.desktop.enable = lib.mkEnableOption "gui"; - }; +{ + config, + lib, + ... +}: { + # 1. Define the option (Keep it here if this is the only place it lives) + options.tulg.desktop.enable = lib.mkEnableOption "gui"; - imports = [ - ./noctalia.nix - ./symlink.nix - ./hyprland.nix - ./spicetify.nix - ./browsers/zen.nix - ./vscode.nix - ./pkgs.nix - ]; + # 2. Wrap the imports in a conditional config block + config = lib.mkIf config.tulg.desktop.enable { + imports = [ + ./noctalia.nix + ./symlink.nix + ./hyprland.nix + ./spicetify.nix + ./browsers/zen.nix + ./vscode.nix + ./pkgs.nix + ]; + }; }