I’m setting up a drawing tablet following Drawing Tablet - NixOS Wiki, and in the instructions it specifies this configuration:
{
services.xserver.digimend.enable = true;
environment.systemPackages = [
pkgs.linuxKernel.packages.linux_6_9.digimend
];
}
Where the Digimend package is selected from https://search.nixos.org/packages?channel=24.05&query=digimend.
In order to get the kernel module I have to manually specify the kernel version, it seems. Is there a way to make it automatically select the appropriate package for the installed kernel? It’s not a big deal on a stable channel where the kernel isn’t updated, but I’m considering switching to unstable for other driver patches, and I want to avoid having to manually update my configuration when a new kernel gets pushed to the unstable channel. Maybe I am also misunderstanding how the kernel and kernel packages get packaged under NixOS. I am a little confused since selecting a packages for a kernel version appears to be done through pkgs.linuxPackages_<kernel>
, while selecting this kernel module is done through pkgs.linuxKernel.<kernel>
.