diff --git a/modules/config/home-cursor.nix b/modules/config/home-cursor.nix index cb9a2ab28..0a8fb378b 100644 --- a/modules/config/home-cursor.nix +++ b/modules/config/home-cursor.nix @@ -45,6 +45,17 @@ let gtk config generation for {option}`home.pointerCursor` ''; }; + + hyprcursor = { + enable = mkEnableOption "hyprcursor config generation"; + + size = mkOption { + type = types.nullOr types.int; + example = 32; + default = null; + description = "The cursor size for hyprcursor."; + }; + }; }; }; @@ -178,5 +189,13 @@ in { (mkIf cfg.gtk.enable { gtk.cursorTheme = mkDefault { inherit (cfg) package name size; }; }) + + (mkIf cfg.hyprcursor.enable { + home.sessionVariables = { + HYPRCURSOR_THEME = cfg.name; + HYPRCURSOR_SIZE = + if cfg.hyprcursor.size != null then cfg.hyprcursor.size else cfg.size; + }; + }) ]); }