this post was submitted on 25 Aug 2025
186 points (87.8% liked)
Memes
52443 readers
639 users here now
Rules:
- Be civil and nice.
- 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
view the rest of the comments
sudo nix-rebuild switch
uhm, akshually it's
sudo nixos-rebuild switch --upgrade
This is the way.
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.
Lots of useful stuff here. Taking all of it.
Does
nh
usefast-nix-build
(or whatever the fancy nix builder CLI is called) to build your system?Actually
nixos-rebuild switch --sudo
.