Grub commands don't exist in terminal

So before I start saying anything, I’m a new user that is trying out NixOS on a VM currently and setting up my own config before I decide on moving to Nix in the upcoming month but I’m looking at something in particular. Coming from Arch, I use an option for grub to reboot into another OS on my system automatically using grub-reboot but it seems that doesn’t exist even when using grub as my bootloader. I see there is an option for setting the default index of the menu, but it seems that is possibly only on rebuild.

Is there a way I can get the grub-reboot option on Nix or am I out of luck?

Ok… After a while of searching I found out what is going on. When you do the whole boot.loader.grub.enable, it doens’t install grub with it and KEEP it on the system. I got my commands and got what I needed by adding grub2 to my systemPackages, and now grub-reboot now works.