1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

home-cursor: set hyprcursor size default (#7145)

This commit is contained in:
Flameopathic 2025-05-27 20:07:44 -04:00 committed by GitHub
parent d23d20f55d
commit 8cb8a04cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,9 +82,10 @@ let
enable = mkEnableOption "hyprcursor config generation";
size = mkOption {
type = types.nullOr types.int;
type = types.int;
example = 32;
default = null;
default = config.home.pointerCursor.size;
defaultText = "config.home.pointerCursor.size";
description = "The cursor size for hyprcursor.";
};
};
@ -239,7 +240,7 @@ in
(mkIf cfg.hyprcursor.enable {
home.sessionVariables = {
HYPRCURSOR_THEME = cfg.name;
HYPRCURSOR_SIZE = if cfg.hyprcursor.size != null then cfg.hyprcursor.size else cfg.size;
HYPRCURSOR_SIZE = cfg.hyprcursor.size;
};
})