From 63e0859743908a53e58b3ceeca06a145a45c4435 Mon Sep 17 00:00:00 2001 From: XYenon Date: Sat, 29 Jun 2024 00:42:33 +0800 Subject: [PATCH] fix(home-manager): only enable pointerCursor by default on linux (#248) --- 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 398e3f6..41e9cb9 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";