this post was submitted on 23 May 2025
20 points (100.0% liked)
Nix / NixOS
2212 readers
62 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Can you explain how you would use this here? Would this make files like this in my config unnecessary?
I wasn't very clear in how I wrote those points, I think you got it backwards.
My points was that OP was using recursiveMerge, and I think that is not a very common or useful pattern to follow, because you evade the module system, for no good reason(?).
I think you are already following the most common pattern out there. If you would like to, there are ways to avoid having a
default.nix
file for each module, but in my opinion that only makes it harder for other people to understand your modules.Okay thanks I was very confused bc I had never seen that as advice anywhere haha