3 ms·
> I thought that one could just install packages with a package manager. You could use the command nix-env -iA mypackage To install packages, which is li
by nextaccountic 4y ago
> I thought that one could just install packages with a package manager.
You could use the command
nix-env -iA mypackage
To install packages, which is like pacman -S mypackage or apt install mypackage.
But... the interesting part of Nix is that it lets you install packages declaratively, by editing a config (like vim and emacs packages). Besides installing packages, all configuration is done through this config file (or bunch of config files): nix generates all files in /etc for you, again, like vim or emacs, but for the whole OS
That way, you easily transfer your setup to another computer or even keep two machines in sync. And you can add it to version control. And you get a grub menu with all your previous setups (until you uninstall them)
If this doesn't appeal you, you probably won't like to use NixOS