[Nix-dev] NixOS installation on multi-boot system with GRUB

Henning Thielemann lemming at henning-thielemann.de
Sun Aug 30 10:19:44 CEST 2015


On Sat, 29 Aug 2015, 宋文武 wrote:

> Indeed, I think nixos-install should create the grub.cfg without touch the
> MBR when you set 'boot.loader.grub.device' to "nodev".
>
> You need modify your main grub.cfg (the Ubuntu one) to add a
> NixOS menuentry with 'chainloader' or 'configfile'.

Ok, I succeeded with the configfile approach. However I have to run 
nixos-install twice in order to eventually get a grub.cfg. I have in 
/etc/nixos/configuration.nix:

   boot.loader = {
     grub.enable = true;
     grub.version = 2;
     grub.device = "nodev";
   };

Now I can successfully boot NixOS!


More information about the nix-dev mailing list