Skip to content

Commit

Permalink
fix(home-manager): only apply pointer cursor on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
XYenon committed Jun 27, 2024
1 parent 53967ef commit 3799638
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/home-manager/cursor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
let
inherit (lib) ctp mkIf;
cfg = config.catppuccin.pointerCursor;
enable = cfg.enable && pkgs.stdenv.isLinux;

# "dark" and "light" can be used alongside the regular accents
cursorAccentType = ctp.mergeEnums ctp.types.accentOption (
Expand All @@ -21,7 +22,7 @@ in
accent = ctp.mkBasicOpt "accent" cursorAccentType "cursors";
};

config.home.pointerCursor = mkIf cfg.enable {
config.home.pointerCursor = mkIf enable {
name = "catppuccin-${cfg.flavor}-${cfg.accent}-cursors";
package = pkgs.catppuccin-cursors.${cfg.flavor + ctp.mkUpper cfg.accent};
};
Expand Down

0 comments on commit 3799638

Please sign in to comment.