I am trying to run a driver for my XP-Pen graphics tablet with steam-run, but I need to run the driver with root permissions in order for it to work (here is the link to the linux drivers: https://www.xp-pen.com/download/artist-13-2nd-generation.html). I’ve also tried packaging the driver as a nix package, but I get the same problem.
which basically unpack the .deb and fix a few hardcoded paths.
Also, what do you use steam-run for? If it’s just to run a non-patched binary, it might be simpler to enable nix-ld, this way your whole system is FHS-like, and you don’t need to worry about whether you can run root scripts or not. See my recommendation on nix-ldhere.
Hello, I am really late but this might still be useful to some people. I just wanted to mention that you don’t need the official proprietary drivers. You can also use the opentabletdriver for that purpose. Most models are supported, my XP-PEN Deco V1 also works with them and I would assume newer models do too.
Here is a little snippet for a minimal drawing environment
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
krita # you obviously don't need krita for the drivers
opentabletdriver
];
}