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>
27 lines
392 B
Nix
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;
|
|
};
|
|
};
|
|
}
|