Thanks for pointing me at the relevant PR @fricklerhandwerk! That is exactly what I was looking for.
Unfortunately, reading through the PR and the discussions, I do not understand how to deal with the issue. The nix maintainers meeting protocol says: “No real solution except allowing them internally (just forbid creating new ones)”
However, it seems that they are not allowed internally, are they?