From 8cb8a04cb1383fe08bb6cbf672f00ed60c92bbbd Mon Sep 17 00:00:00 2001 From: Flameopathic <64027365+Flameopathic@users.noreply.github.com> Date: Tue, 27 May 2025 20:07:44 -0400 Subject: [PATCH] home-cursor: set hyprcursor size default (#7145) --- modules/config/home-cursor.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/config/home-cursor.nix b/modules/config/home-cursor.nix index c6c2c0620..b792c5c12 100644 --- a/modules/config/home-cursor.nix +++ b/modules/config/home-cursor.nix @@ -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; }; })