Nix-direnv is a quality of life improvement
ianthehenry.com
ianthehenry.com
Nix is sometimes seems like a very inconsistent/app specific dsl. It's basically like maven, where everything is totally custom, but there's enough of a polite facade to give the impression there's some deeper meaning & purpose. Maybe there is deeper consistency, but it just looks to an outside like a vague dsl.
We have a very senior engineer who uses nix. And they just share their huge huge nixfile or whatever it's called, and are like, somewhere in here is some config that makes machine work. But it never illuminates what is really done, what the real changes are.
We all have to go scatter & try to re-learn what the unabstracted system is. It's such a draining experience, having to de-dsl and unpack some cryptic shit embedded deep in some dudes dsl to root out real revelation & understanding. The ease, I get, but it's all just a masquerade that seems to hide & conceal, that obstructs genuine learning, and I struggle cope with accepting this systems dsl.
If something goes wrong you have to understand 1. Nix 2. Nix abstraction on top of the service 3. The service and how it’s configured 4. Linux, it’s a lot to ask.
All in about ten lines of code. They're called overlays if anyone is curious.
export DIRENV_LOG_FORMAT=
[1] https://github.com/direnv/direnv/issues/68#issuecomment-1626...