forked from poz/niksos
35 lines
830 B
Nix
35 lines
830 B
Nix
|
{
|
||
|
config,
|
||
|
config',
|
||
|
lib,
|
||
|
...
|
||
|
}: with lib; let
|
||
|
cfg = config.myOptions.themes.cursor;
|
||
|
in {
|
||
|
options.myOptions.themes.cursor = {
|
||
|
enable = mkEnableOption "enable cursor theming";
|
||
|
package = mkOption {
|
||
|
description = "cursor theme package";
|
||
|
type = types.package;
|
||
|
};
|
||
|
name = mkOption {
|
||
|
description = "cursor theme name";
|
||
|
type = types.str;
|
||
|
};
|
||
|
size = mkOption {
|
||
|
description = "cursor size";
|
||
|
type = types.int;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
home-manager.users.${config'.username} = {
|
||
|
home.pointerCursor = {
|
||
|
inherit (cfg) package name size;
|
||
|
gtk.enable = true;
|
||
|
x11.enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|