Build and switch to the new configuration, making it the boot default and installing updates

nixos-rebuild

sudo nixos-rebuild switch --upgrade

click the source code to copy