nixoscommands
This is an old revision of the document!
Table of Contents
Normal rebuild:
sudo nixos-rebuild switch
Update the root user's channel named ‘nixos’ before rebuilding the system:
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
nixoscommands.1768754035.txt.gz · Last modified: by david
