this post was submitted on 19 Jul 2023
7 points (88.9% liked)
NixOS
992 readers
1 users here now
NixOS is a Linux distribution built on top of the Nix package manager. Its declarative configuration allows reliable system upgrades via several official channels of stability and size.
This community discusses NixOS, Nix, and everything related.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you're just handling one single-user computer, just use
configuration.nix
. Also, stuff related to admin, system maintenance, or anything host-specific goes here.As you say, if you want a portable config you can use on many computers for yourself, home-manager is your friend. I use it for all my systems, NixOS and otherwise.
I only use nix shell if I need something once, or at least rarely. It's for one-offs.
If I'm writing or packaging something I'll use a flake...but if I want it installed on my systems I'll import & use the flake in either my system or home-manager config. Define a package and an overlay, at which point it's just a regular package.