this post was submitted on 19 Aug 2023
18 points (100.0% liked)
nixos
1269 readers
1 users here now
All about NixOS - https://nixos.org/
founded 4 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm generally not a big fan of
switch
, as you experienced, you risk a lot of generations that you don't actually need. Also, in some cases, switching isn't possible (e.g. you removesddm
and on switching, nix wants to restart all services related to the no longer existing sddm user).My usual workflow is for smaller changes to just do
nixos-rebuild test
and try out things, and when it suits my needs finalize vianixos-rebuild boot
. Bigger stuff I try to isolate and then do anixos-rebuild boot
only.