Changes in Grub

Hello everyone, I’m new here on the forum and on NixOs. I installed it and I’m loving it, I’m having difficulties with the commands, for example, how do I change grub, because I have Win10 as my main system, because this is my work tool, and I would like to put it in evidence at startup, how do I do it to delete previous links after a rebuild-switch. Thanks to anyone who can help me.


In NixOS, everything is done by setting options in the NixOS config.
In your case, I think you’re looking for these options.

Regarding the clean-up, I’d recommend to regularly garbage collect your nix store (look at these options). And then the entries will be cleaned up automatically by the next nixos-rebuild.