11.stylix/stylix/cursor.nix
2024-04-22 22:25:40 +01:00

26 lines
750 B
Nix

{ pkgs, config, lib, ... } @ args:
with lib;
let
cfg = config.stylix.cursor;
fromOs = import ./fromos.nix { inherit lib args; };
in {
options.stylix.cursor = {
name = mkOption {
description = "The cursor name within the package.";
type = types.str;
default = fromOs [ "cursor" "name" ] "Vanilla-DMZ";
};
package = mkOption {
description = "Package providing the cursor theme.";
type = types.package;
default = fromOs [ "cursor" "package" ] pkgs.vanilla-dmz;
};
size = mkOption {
description = "The cursor size.";
type = types.int;
default = fromOs [ "cursor" "size" ] 32;
};
};
}