with small steps forward, and I will also cast spells just like you
Nominated, I need to cast a spell 4 seconds after booting the system
the spell will reload the wacom tablet on the newest kernel
tablet works without anything on kernel 4.14
I do not understand yet what is happening under the nixos hood
I know I can do it by writing new modules.nix
which will run the script preferably with systemd
#!/bin/sh
for d in /sys/bus/usb/devices/*; do
if [ -r “$d/idVendor” ]; then
idVendor=cat $d/idVendor
idProduct=cat $d/idProduct
if [ “$idVendor” = “056a” -a “$idProduct” = “032a” ]; then
echo 0 > “$d/authorized”
echo 1 > “$d/authorized”
fi
fi
done
for d in /sys/bus/usb/devices/*; do
if [ -r “$d/idVendor” ]; then
idVendor=cat $d/idVendor
idProduct=cat $d/idProduct
if [ “$idVendor” = “056a” -a “$idProduct” = “032a” ]; then
echo 0 > “$d/authorized”
echo 1 > “$d/authorized”
fi
fi
done