NixOS maintenance commands
A short reference for the NixOS maintenance commands I use.
Verify the store’s contents and repair damaged paths:
nix-store --verify --check-contents --repair
Remove old generations and collect garbage:
nix-collect-garbage -d
Build and activate the system configuration:
nixos-rebuild switch