I think you can use chain-loading. Then two GRUBs will be installed, one
will load the other. See this example for the config option in NixOS
http://hydra.nixos.org/build/25232900/download/2/nixos/options.html#opt-boot.loader.grub.extraEntries.
And here is GRUBs manual about it
https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html.

This is exactly what iyzsong suggested. If you installed NixOS you edit
/etc/nixos/configuration.nix.

On Sat, Aug 29, 2015 at 1:48 AM, Henning Thielemann <
[email protected]> wrote:

>
> On Fri, 28 Aug 2015, Anderson Torres wrote:
>
> > 2015-08-28 12:38 GMT-03:00 Henning Thielemann <
> [email protected]>:
> >>
> >> I find no /boot/grub/grub.cfg on the NixOS partition, not even a 'grub'
> >> directory. Am I supposed to write a grub.cfg myself or should
> nixos-install
> >> create one for me? If the latter one, how can I make nixos-install
> create a
> >> grub.cfg for me but not install a boot-loader?
> >
> > Do you need NixOS controlling the boot of other OSes on your machine?
>
> No, I want to keep Ubuntu managing GRUB.
> _______________________________________________
> nix-dev mailing list
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to