rose-pine-nix/modules/home-manager/cursor.nix

26 lines
571 B
Nix
Raw Normal View History

{
config,
pkgs,
lib,
...
2024-10-19 18:04:37 -07:00
}: let
inherit (lib) rp mkIf;
cfg = config.rose-pine.pointerCursor;
flavor =
if (cfg.flavor == "dawn")
then "Dawn"
else "";
in {
options.rose-pine.pointerCursor = rp.mkRosePineOpt {
name = "pointer cursors";
# NOTE: we exclude this from the global `rose-pine.enable` as there is no
# `enable` option in the upstream module to guard it
enableDefault = false;
};
config.home.pointerCursor = mkIf cfg.enable {
2024-10-19 18:04:37 -07:00
name = "BreezeX-RosePine${flavor}-Linux";
package = pkgs.rose-pine-cursor;
};
}