4
How do you manage your packages with Nix?
(lemmygrad.ml)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
That's a really hacky method and should not be in the manual tbh.
You should be able to update by "installing" your env again though.
It's a bit overkill but for declarative package management under non-NixOS, I use home-manager's
home.packages
option. It does essentially this but wraps it in a nice package and home-manager can do a lot of other things too.As for flakes: No, you don't require them to do any of this. They solve an entirely different problem.
I second home-manager, it was my Nix gateway drug and I can't recommend it enough!
That's why I'm asking, it seemed really odd.
Thanks, this makes a lot more sense. Any good resources besides the wiki? Is there a way to break down home.packages into smaller chunks for modularity?
So they're just to ensure reproducibility?
home-manager uses the NixOS module system, so you can use everything that comes with it, like
imports
That and for easier importing of other people's Nix code
Nice, thanks