From f01f350d444db33a6cecac0d7770943bfe5bf471 Mon Sep 17 00:00:00 2001 From: XYenon Date: Thu, 27 Jun 2024 16:39:23 +0800 Subject: [PATCH] fix(home-manager): only enable pointerCursor by default on linux --- modules/home-manager/cursor.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/cursor.nix b/modules/home-manager/cursor.nix index 398e3f66..41e9cb95 100644 --- a/modules/home-manager/cursor.nix +++ b/modules/home-manager/cursor.nix @@ -17,9 +17,14 @@ let ); in { - options.catppuccin.pointerCursor = ctp.mkCatppuccinOpt { name = "pointer cursors"; } // { - accent = ctp.mkBasicOpt "accent" cursorAccentType "cursors"; - }; + options.catppuccin.pointerCursor = + ctp.mkCatppuccinOpt { + name = "pointer cursors"; + enableDefault = config.catppuccin.enable && pkgs.stdenv.hostPlatform.isLinux; + } + // { + accent = ctp.mkBasicOpt "accent" cursorAccentType "cursors"; + }; config.home.pointerCursor = mkIf cfg.enable { name = "catppuccin-${cfg.flavor}-${cfg.accent}-cursors";