User Tools

Site Tools


nixoscommands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
nixoscommands [2026/01/18 02:30] – created davidnixoscommands [2026/01/28 18:43] (current) – david
Line 1: Line 1:
-sudo nixos-rebuild switch+====Normal rebuild:====
  
-sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations +5 
  
-sudo nix-collect-garbage -d+  sudo nixos-rebuild switch 
 + 
 +\\ 
 + 
 +====Update the root user's channel named ‘nixos’ before rebuilding the system:==== 
 + 
 +   sudo nix-channel --update 
 + 
 +or 
 + 
 +  sudo nixos-rebuild switch --upgrade 
 +\\ 
 + 
 +====Delete last 5 generations:==== 
 + 
 +  sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations +5 
 +\\ 
 + 
 +===Clear unused packages=== 
 + 
 +  sudo nix-collect-garbage -d 
 +\\ 
 + 
 +---- 
 + 
 + 
 + 
 +[[nixoscategory|Back to Nixos Home]] 
nixoscommands.1768699815.txt.gz · Last modified: by david

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki