News for hackers. Stuff that matters.
Re:The Polyglot NixOS by vegabook on Tuesday December 23, 2025 @05:21AM (#46364095)
Yeah once you've used Nix[OS] and home-manager, it's hard to go back to apt or brew or the dreaded "sudo make install" without feeling like you need to have a shower afterwards. And I was a loyal Ubuntu person for like 15 years. It's especially true if you're a dev installing and uninstalling all day long.
Re:The Polyglot NixOS by pzmarzly on Tuesday December 23, 2025 @05:42AM (#46364208)
With homebrew, you can have Brewfile that can serve as declarative source of truth.

I try to install all software via homebrew, mise (https://mise.jdx.dev/), and scoop (https://scoop.sh/), and setting up a new machine now takes me minutes. Meanwhile I don't need to deal with Nix language.

Re:The Polyglot NixOS by embedding-shape on Tuesday December 23, 2025 @06:59AM (#46364601)
> With homebrew, you can have Brewfile that can serve as declarative source of truth.

for homebrew, while Nix configuration is for everything. I never used a Brewfile before, so looked at https://github.com/Lissy93/Brewfile/blob/master/Brewfile but it just looks like a list of packages. What about the configuration for those packages? Or your own custom patches for them? Runtime parameters? Environment variables?

There is so much more going on in the typical developer environment that it doesn't seem like (to me, an uneducated fool) Brewfile would be enough to actually serve as a declarative source of truth, except for Homebrew-specific things.

Re:The Polyglot NixOS by the_gipsy on Tuesday December 23, 2025 @07:42AM (#46364882)
Versions? Compatibilities? Just pulling latest doesn't cut it.
Re:The Polyglot NixOS by beepbooptheory on Tuesday December 23, 2025 @03:20PM (#46369064)
It has a really good story here imo! Pin nixpkgs to a commit with the version you need, it will pull and use the compatible deps even if you have those deps in different versions being used elsewhere.
Re:The Polyglot NixOS by embedding-shape on Tuesday December 23, 2025 @06:06PM (#46370547)
I think they were continuing my earlier questions, ie they're asking about those things in Homebrew/Brewfile like I did with my other questions.
Re:The Polyglot NixOS by the_gipsy on Wednesday December 24, 2025 @06:11PM (#46380312)
Yes
Re:The Polyglot NixOS by JamesSwift on Tuesday December 23, 2025 @11:39AM (#46366730)
Brewfile is definitely the best option when in that ecosystem, but even that falls short by having no explicit versioning. You have to hack in version pinning if you run into an issue with a specific package.

If you like mise, check out devenv for the nix version of it. Its a lot of the nix benefits without a lot of the nix drawbacks (but still some)

Re:The Polyglot NixOS by athoneycutt on Tuesday December 23, 2025 @06:09PM (#46370572)
It has been a game changer for me at least as a first time dev to just run 'nix develop' and have 'cargo build' just work as a declare all the depends, options and such in my flake.nix. You can do the same with 'shell.nix' files so without flakes.
Re:The Polyglot NixOS by vegabook on Wednesday December 24, 2025 @01:26AM (#46373011)
agreed. Github should make the inclusion of a flake.nix mandatory lol
Re:The Polyglot NixOS by athoneycutt on Friday December 26, 2025 @07:02PM (#46397745)
That would be a game changer I think.
Re:The Polyglot NixOS by bjackman on Wednesday December 24, 2025 @04:20AM (#46373949)
It's a crazy drug because there's a lot of significant downsides to Nix[OS]. E.g. it took me a solid half an hour of focus to upgrade my config to 25.11[1]. Also, like, no Secure Boot. And I've had to reverse engineer a lot of stuff.

But like you said, I can't ever imagine going back. Once you're over the learning curve (and... yeah, that learning curve) the upside are just so huge. Nothing compares, at all.

Part of me wonders if maybe one day a bootc-based framework will offer something like 20% of the benefits of NixOS with only 10% of the downsides. But other than that, we're totally stuck with Nix forever. (And once I had switched to bootc, I bet my next thought would be "I should find a way to generate this config from Nix"...).

[1] I have a very complex config so this may be an extreme case. On the other hand, everything about Nix is basically designed as an invitation to create an extremely complex config.