nixos-config/home/x/cursor.nix

18 lines
433 B
Nix
Raw Normal View History

2021-04-21 18:53:21 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.x.cursor;
in
{
2021-07-29 12:22:46 +02:00
options.my.home.x.cursor.enable = (lib.mkEnableOption "X cursor") // { default = config.my.home.x.enable; };
2021-04-21 18:53:21 +02:00
config = lib.mkIf cfg.enable {
xsession.pointerCursor = {
package = pkgs.capitaine-cursors;
name = "capitaine-cursors";
# available sizes for capitaine-cursors are:
# 24, 30, 36, 48, 60, 72
size = 30;
};
};
}