Wacom cintiq not work

Hello all
(pierwszy post test) :roll:

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

I’ve picked something like this so far, but it doesn’t work yet
is not a module, it is part of configuration.nix

systemd.services.wacom-hack = {
serviceConfig.Type = “oneshot”;
path = with pkgs; [ bash ];
script = ‘’
bash ./wacom-hack.sh
‘’;
};
systemd.timers.wacom-hack = {
wantedBy = [ “timers.target” ];
partOf = [ “wacom-hack.service” ];
timerConfig = {
OnBootSec = “4”;
Unit = “wacom-hack.service”;
};
};

#!/usr/bin/env bash

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

I know it looks bad after copying the syntax is gone

Hosted by Flying Circus.