There's a community of 8 users, that are very persistent, and always trying to get you to install NixOS. They swear by it and say it's the best thing ever ha...
This particular example isn’t very good, just install multiple kernels (or compile one yourself) on your distro of choice and boot into the one you want with your bootloader of choice. Once set up you don’t even have to change any configs any more, just use an interactive menu on boot. So even easier than NixOS? There are plenty of valid use-cases for Nix, this isn’t one of them.
This particular example isn’t very good, just install multiple kernels (or compile one yourself) on your distro of choice and boot into the one you want with your bootloader of choice. Once set up you don’t even have to change any configs any more, just use an interactive menu on boot. So even easier than NixOS? There are plenty of valid use-cases for Nix, this isn’t one of them.
That’s way more complicated than adding a single line of text in a single text file and also having guaranteed way back if anything goes wrong.