1 { config, lib, pkgs, ... }:
7 cfg = config.services.xserver.digimend;
9 pkg = config.boot.kernelPackages.digimend;
17 services.xserver.digimend = {
19 enable = mkEnableOption "the digimend drivers for Huion/XP-Pen/etc. tablets";
26 config = mkIf cfg.enable {
28 # digimend drivers use xsetwacom and wacom X11 drivers
29 services.xserver.wacom.enable = true;
31 boot.extraModulePackages = [ pkg ];
33 environment.etc."X11/xorg.conf.d/50-digimend.conf".source =
34 "${pkg}/usr/share/X11/xorg.conf.d/50-digimend.conf";