User Tools

Site Tools


nixoscommands

This is an old revision of the document!


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



Back to Nixos Home

nixoscommands.1769027968.txt.gz · Last modified: by david

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki