News for hackers. Stuff that matters.
Re:Nix: An idea whose time has come by MarcScott on Saturday February 19, 2022 @04:43AM (#30395732)
It'll still be there, but the symlink will go from your path. The nice thing is that if you open another shell and use it again, it's already there, and the symlink is reestablished. If you want it installed globally then it's still there and it just gets added to your path.

If you start to run our of disk space, then a quick garbage collection will remove all unused packages and builds.

The other nice thing about the nix-shell is I can incorporate pip into it (and probably other package managers as well, though I rarely use anything other than Python). So I can open a shell, add various lib type dependencies and any Python packages I want. All of it is only available in the shell, and when I exit they're gone as far as my OS is concerned.

You could clone a repo that contained my default.nix file, jump into a shell and be working with and identical environment to mine.

I have no idea why everyone isn't using NixOS.

Re:Nix: An idea whose time has come by amelius on Saturday February 19, 2022 @05:24AM (#30395974)
> I have no idea why everyone isn't using NixOS.

Well, in my case it is because Nvidia Jetson's line of products is forcing me to run Ubuntu.

Re:Nix: An idea whose time has come by Osiris on Saturday February 19, 2022 @05:55AM (#30396121)
I tried. I didn't feel like spending days learning their custom config language just to install a program I want to use. Ease of use is not a label I would apply to NixOS.
Re:Nix: An idea whose time has come by nextos on Saturday February 19, 2022 @06:47AM (#30396385)
Try NixOS with the new redesigned command line. It's much simpler. No idea why this is not getting advertised more widely, as it's been worked on for a few years already: https://github.com/NixOS/nix/issues/779

For example, opening a temporary shell with, say, GIMP, is as simple as: nix run nixpkgs.gimp

If you want to check what packages are available for GIMP, because you are not sure what to run: nix search gimp

I tend to forget very convoluted commands, and I find the new nix much simpler than pacman or apt.

Documentation has also matured a lot, see: https://nixos.wiki/wiki/Resources

Re:Nix: An idea whose time has come by k__ on Saturday February 19, 2022 @08:25AM (#30396978)
Where are the docs for the nix command?
Re:Nix: An idea whose time has come by Smaug123 on Saturday February 19, 2022 @08:33AM (#30397019)
Re:Nix: An idea whose time has come by k__ on Saturday February 19, 2022 @08:42AM (#30397066)
thanks!
Re:Nix: An idea whose time has come by 1_player on Saturday February 19, 2022 @06:34AM (#30396320)
> I have no idea why everyone isn't using NixOS.

Because NixOS is a valid, but too rigid and cumbersome a solution to a real problem.

ostree+containers is the realistic solution to that problem, in my opinion. Worse, sometimes, is better.