how to apply config without changing grub settings?

Hello. I have a grub configured not by me and configured well. I would like to apply the nix config in nixos in such a way that the existing grub configuration is not changed.

If I remove all grub parameters from the config, will it completely erase grub settings, or will grub settings remain unchanged?

I think you can set the grub device to “nodev”, but I’d have to check to say more.