If you are a Linux user, you probably know the hassle of rebooting your system after installing a kernel update. This can sometimes be inconvenient, especially if you are running a server or a critical application that needs to be always available. Fortunately, there is a way to apply kernel
Sadly, I could not. Live patching requires extensive knowledge of the previous system state and that is the antithesis to NixOS where any system state is fully independent of any other possible system state.
nixos-rebuild switch
isn’t very magical at all once you understand this principle.Live patching is also not really something you want to use or use frequently. It’s more intended for “this super critical box can only be taken down next Saturday but there’s a fix for a 0-day in the kernel today that we need ASAP”. If it’s at all possible to simply reboot, simply reboot (or kexec).