Skip to content

Commit

Permalink
fix(home-manager): only enable pointerCursor by default on linux (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
XYenon authored Jun 28, 2024
1 parent 3f46074 commit 63e0859
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions modules/home-manager/cursor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 63e0859

Please sign in to comment.