Build the new configuration and make it the boot default without switching to it

nixos-rebuild

sudo nixos-rebuild boot

click the source code to copy