# To upgrade packages, first, you will have to check for updates in added channels: nix-channel --update # And then, use the following command to install those updates (if any): sudo nixos-rebuild switch --upgrade or doas nixos-rebuild switch --upgrade