diff --git a/home/xdg-config/xdg.nix b/home/xdg-config/xdg.nix index 2f093c7..d88f534 100644 --- a/home/xdg-config/xdg.nix +++ b/home/xdg-config/xdg.nix @@ -13,7 +13,10 @@ in inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-gtk ]; - configPackages = [inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland]; + configPackages = [] + ++ lib.optionalAttrs cfg.hyprland.enable [ + inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland + ]; }; }; }