News for hackers. Stuff that matters.
Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by lloeki on Sunday August 13, 2023 @03:32AM (#37107535)
> Honestly, it’s Home Manager that really adds the maximum value

I feel like Nix does have such killer features, but they are different for everyone.

For me it was:

- system management (nixos + nix-darwin. I wish there was something like nix-darwin for non-nixos linux distros, binding daemon systemd units and desktop files into the "hosting" distro)

- on-the-spot running without globally installing for one shot tasks (nix-shell -p iotop --run iotop)

- "just works" project environment (default.nix+shell.nix or flakes)

These are the ones that made me tip over and decide to go from tiptoeing to full tilt

Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by Novosell on Sunday August 13, 2023 @07:19AM (#37108850)
I don't really see the appeal of avoiding to install programs. What's the benefit, exactly?
Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by mbakke on Sunday August 13, 2023 @08:34AM (#37109370)
Not needing root is a game changer.

Another benefit is that "traditional" package managers may litter your system with configuration files and post-install scripts (for the software you are installing and all of its dependencies), some of which can persist even after uninstalling the packages.

Nix prevents that by design.

Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by lloeki on Sunday August 13, 2023 @09:19AM (#37109766)
One less thing to manage and think about, including cleaning up after myself. It may pull dependencies that I don't care about or want exposed e.g that would be picked up by some other thing. apt-get autoremove --purge or pacman -Rsc become a distant memory.

It's fire and forget and I can just focus on what I'm set to do.

Once I'm done with the one shot task, it disappears and could be garbage collected for all I care.

Some tools I did promote to being part of my user env but crossing that bar is a very deliberate thing, some are promoted to systemwide (root) and the bar for that is even higher.

It removes a ton of mental deadweight.

Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by dlyons on Sunday August 13, 2023 @07:41AM (#37108973)
Yeah, nix-darwin is incredible. Use cases you mentioned are great; for me, I love being able to use my NixOS machine and MacBook to seamlessly carry around the same dev environment.

https://github.com/dustinlyons/nixos-config

Re:NixOS RFC 136 approved: A plan to stabilize the new CLI a... by pxc on Sunday August 13, 2023 @03:06PM (#37113102)
> I wish there was something like nix-darwin for non-nixos linux distros

It's in early stages, but it exists now: https://github.com/numtide/system-manager