12 cfg = config.services.xserver.digimend;
14 pkg = config.boot.kernelPackages.digimend;
22 services.xserver.digimend = {
24 enable = mkEnableOption "the digimend drivers for Huion/XP-Pen/etc. tablets";
30 config = mkIf cfg.enable {
32 # digimend drivers use xsetwacom and wacom X11 drivers
33 services.xserver.wacom.enable = true;
35 boot.extraModulePackages = [ pkg ];
37 environment.etc."X11/xorg.conf.d/50-digimend.conf".source =
38 "${pkg}/usr/share/X11/xorg.conf.d/50-digimend.conf";