I read a bit about NixOS and tried it these days, because I got the impression that it would let me configure a Linux with just one file.
When I used it, I installed a bunch of packages with nix-env
, so they didn't end up in the configuration.nix
, but I could simply uninstall them later and add them to the configuration.nix
by hand. I there something like npm i -g <package>
that would install this globally so it would end up in the configuration.nix
and could simply be copied to another machine.
Also, I installed stuff like zsh
and atom
and they have an entirely different approach to configuration and customization (bashscript, javascript, less, etc).
Is there a way for Nix/NixOS to track the package-specific config too?
Does it already happen and I don't see it? Like the nix expression of the package knows where the package will store its config etc.
I mean, it's nice that I can add these packages to the main config and when using it at another PC I get the same software installed, but I still see myself writing rather much configs for the installed packages too.