this post was submitted on 25 Aug 2025
182 points (89.6% liked)

Memes

52090 readers
1305 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Johanno@feddit.org 9 points 22 hours ago (4 children)
[–] Malgas@beehaw.org 2 points 14 hours ago (1 children)
nix flake update
nix flake check --no-build
git commit -a
nh os switch

Is the routine I've settled into. Flake update because I use flakes, flake check because it's easier to see any warnings about deprecated options and the like so I can fix them preemptively, git commit after the check to avoid back-to back commits where the second is fixing some issue with the first, and nh because I like the pretty dependency graph and progress bar.

[–] NuclearDolphin@lemmy.ml 1 points 5 hours ago (1 children)

Lots of useful stuff here. Taking all of it.

Does nh use fast-nix-build (or whatever the fancy nix builder CLI is called) to build your system?

[–] Malgas@beehaw.org 1 points 1 hour ago

I honestly don't know how nh works under the hood, but it does seem to do concurrent builds, so it's probably something like that.

[–] itslilith@lemmy.blahaj.zone 7 points 19 hours ago

uhm, akshually it's sudo nixos-rebuild switch --upgrade

[–] Andrew15_5@mander.xyz 1 points 15 hours ago

Actually nixos-rebuild switch --sudo.

[–] SuppenMartl@beehaw.org 3 points 22 hours ago

This is the way.