2 ms·
That particular command isn’t really different than pacman or apt. Most of the time, though, with Nix, you don’t install stuff that way. In Nixos, there’s a c
by tombert 3y ago
That particular command isn’t really different than pacman or apt.
Most of the time, though, with Nix, you don’t install stuff that way. In Nixos, there’s a configuration.nix file, and you add the package you want to to that file (along with all the other system configs). Then you effectively “rebuild” the OS based on that configuration, and a snapshot is created. Since this configuration is just text, it can be version controlled and backed up to GitHub or something.
If your hard drive crashes or something, you can reinstall Nixos from the config in like fifteen minutes.
If you just need the program temporarily, you can do “nix-shell -p neovim”, which will create a temporary shell where neon can be executed. Once you exit the shell, the binary is unlinked and will be eventually garbage collected.
There’s more, but the tl;dr is that can make stuff a lot more declarative while also allowing for stuff to be more ephemeral.