Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I do this without needing any extra tool[0].

I basically define a custom meta-package with all the packages I want as dependencies and install it with `nix-env -iA`.

[0]: https://github.com/asymmetric/dotfiles/blob/master/config.ni...



Thanks for linking to this! Do you know of a way to get a list of installed packages then? "nix-env -q" lists the meta-package but not the packages installed within. Also, when you update packages, does the update propagate to the sub-packages?


Yes, `nix-env -iA` always installs the latest of all the actual packages I have listed there.

And as you can see you can also override their config.

I don't know how to list installed packages, as I almost never feel like I need to know that (but if you find out how, I'd be happy to know!)


I'd expect you list installed packages by pointing your text editor at the file where you defined which packages you want your meta-package to pull in, no?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: