24
submitted 1 year ago by fullovellas@lemm.ee to c/nix@programming.dev

I think it's about time I improved a bit on my Nix and NixOS knowledge, and I guess the best way is having someone more experienced critique my monstrosity of a setup.

Maybe it's too modular? Not modular enough? Convoluted? Complete garbage altogether?

Go to the repo and find out! Just be sure to let me know after.

you are viewing a single comment's thread
view the rest of the comments
[-] lelgenio@lemmy.ml 3 points 1 year ago

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.

this post was submitted on 23 May 2025
24 points (100.0% liked)

Nix / NixOS

2909 readers
1 users here now

Main links

Videos

founded 3 years ago
MODERATORS