nixos-config/home/x/cursor.nix

28 lines
507 B
Nix
Raw Normal View History

2022-04-10 11:54:58 +02:00
{
config,
lib,
pkgs,
...
}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
mkEnableOption
mkIf
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
2021-04-21 18:53:21 +02:00
cfg = config.my.home.x.cursor;
2022-04-10 11:54:58 +02:00
in {
options.my.home.x.cursor.enable = (mkEnableOption "X cursor") // {default = config.my.home.x.enable;};
2021-04-21 18:53:21 +02:00
2022-01-11 16:08:21 +01:00
config = mkIf cfg.enable {
2022-05-09 03:36:09 +02:00
home.pointerCursor = {
2021-04-21 18:53:21 +02:00
package = pkgs.capitaine-cursors;
name = "capitaine-cursors";
# available sizes for capitaine-cursors are:
# 24, 30, 36, 48, 60, 72
size = 30;
2022-05-09 03:36:09 +02:00
x11.enable = true;
2021-04-21 18:53:21 +02:00
};
};
}