Reboot into new config once?

I saw that grub has support for booting into a configuration once, by telling grub to save the config on boot Booting once-only - GNU GRUB Manual 0.97

It doesn’t seem like NixOS supports this though. Is there a way to set this up manually? I’d like to try a kernel patch on a remote VM…