1 { config, lib, pkgs, ... }:
7 cfg = config.services.xserver.wacom;
15 services.xserver.wacom = {
21 Whether to enable the Wacom touchscreen/digitizer/tablet.
22 If you ever have any issues such as, try switching to terminal (ctrl-alt-F1) and back
23 which will make Xorg reconfigure the device ?
25 If you're not satisfied by the default behaviour you can override
26 {option}`environment.etc."X11/xorg.conf.d/70-wacom.conf"` in
27 configuration.nix easily.
36 config = mkIf cfg.enable {
38 environment.systemPackages = [ pkgs.xf86_input_wacom ]; # provides xsetwacom
40 services.xserver.modules = [ pkgs.xf86_input_wacom ];
42 services.udev.packages = [ pkgs.xf86_input_wacom ];
44 environment.etc."X11/xorg.conf.d/70-wacom.conf".source = "${pkgs.xf86_input_wacom}/share/X11/xorg.conf.d/70-wacom.conf";