Link: https://github.com/nix-community/stylix/pull/1700 Reviewed-by: awwpotato <awwpotato@voidq.com>
26 lines
435 B
Nix
26 lines
435 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 = builtins.floor (cfg.size + 0.5);
|
|
x11.enable = true;
|
|
gtk.enable = true;
|
|
};
|
|
};
|
|
}
|