Working tablet driver (configs local)

This commit is contained in:
Elnu 2022-10-20 18:02:36 -07:00
parent 4b17b41ff0
commit 8ae0ac340d
2 changed files with 3 additions and 34 deletions

View file

@ -1,30 +1,9 @@
{ config, pkgs, ... }:
let
wacom-config = pkgs.substituteAll {
name = "wacom-config";
src = ../wacom-config.sh;
dir = "bin";
isExecutable = true;
};
in
{
services = {
dbus.packages = with pkgs; [ dconf ];
# $ nix-shell -p usbutils
# $ lsusb
# ID <idVendor>:<idProduct>
# Gets stored in /etc/udev/rules.d/99-wacom.rules
udev.extraRules = ''
ACTION=="add",
SUBSYSTEMS=="usb",
ATTRS{idVendor}="056a",
ATTRS{idProduct}="0302",
RUN+="${wacom-config}/bin/wacom-config"
'';
xserver = {
xserver = {
enable = true;
wacom.enable = true;
libinput = {
enable = true;
touchpad.tapping = true;
@ -54,6 +33,8 @@ in
};
};
hardware.opentabletdriver.enable = true;
# To prevent `Unit dconf.service not found.` after theming GTK in HM
programs.dconf.enable = true;