As the title suggests, I need to create a custom udev rule, that doesn’t go into 99-local.rules.
This makes it impossible for me to use any of the available (from what I know) options provided by services.udev.*, such as .extraRules to create the rule.
While searching for the answer, I learned about tmpfiles, but when I tried using it to create a udev rule, nothing has been created. Maybe somewhere an error-log has been created, but I do not know where to even search for it.
The config that I used is:
systemd.tmpfiles.settings = {
"91-opentabletdrive-adds.rules" = {
"/etc/udev/rules.d" = {
f = {
mode = "764";
user = "mustlane";
group = "wheel";
type = "f";
argument = ''
KERNEL=="hidraw*", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="0067", TAG+="uaccess", TAG+="udev-acl"\nSUBSYSTEM=="usb", ATTRS{idVendor}=="256c", ATTRS{idProduct}=="0067", TAG+="uaccess", TAG+="udev-a>
'';
};
};
};
};
So, the question is:
Is there an option to create a custom udev rule, and if not, then is there any options to create the rule declaratively, other than (obviously) using bash scripting?
Thanks for help in advance!