11.stylix/stylix/hm/cursor.nix
Flameopathic 6a2e525887
stylix: optionalize cursor and disable by default (#943)
Closes: https://github.com/danth/stylix/issues/940
Link: https://github.com/danth/stylix/pull/943

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-03-14 14:48:06 +01:00

27 lines
392 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.stylix.cursor;
in
{
config =
lib.mkIf
(
config.stylix.enable
&& config.stylix.cursor != null
&& pkgs.stdenv.hostPlatform.isLinux
)
{
home.pointerCursor = {
inherit (cfg) name package size;
x11.enable = true;
gtk.enable = true;
};
};
}