So… I’ve been using Nix for a while.
Over time, I’ve tried a couple of different styles, from “everything is single lines”, which was… intense and verbose and hard to organize, to what I use now - Everything is nested.
Instead of
thing.thing.thing.thing.value = "whosawhatsit";
I’ve found it a lot more productive to do
thing = {
thing = {
thing = {
thing = {
value = "whosawhatsit";
};
};
};
};
Sure, it uses more lines, but honestly? Way easier to reason about, especially in bigger files.
Honestly that’s about it. Oh and learn to use Flakes! They’re amazing!