Activate a kernel module when installing a program


I’m trying to package a program that depends on several kernel modules being activated. How would I go about that ? Should this be packaged as a nixos option and if so, do you have any example on how to do that ?


Most likely, yes. There are probably plenty of examples, this is how the cdemu module does it:

Thank you that’s what I was looking for