Dual Booting NixOS and Windows: Difference between revisions

Nicdumz (talk | contribs)
System time: arch linux recommends setting MS to UTC, point this out
Phobos (talk | contribs)
m Updated syntax
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This section explains various methods to have the bootloader prompt whether to boot windows or NixOS.
This section explains various methods to have the [[bootloader]] prompt whether to boot windows or NixOS.


== Autodetection ==
== Autodetection ==
Line 84: Line 84:
* the <code>boot.loader.systemd-boot.enable = true;</code> line added to configuration.nix by <code>nixos-generate-config</code> has been removed
* the <code>boot.loader.systemd-boot.enable = true;</code> line added to configuration.nix by <code>nixos-generate-config</code> has been removed


{{File|/etc/nixos/configuration.nix|nix|<nowiki>
{{File|3={ config, ... }:
{ config, ... }:


{
{
Line 114: Line 113:
         }
         }
       '';
       '';
      version = 2;
     };
     };
   };
   };
}</nowiki>}}
}|name=/etc/nixos/configuration.nix|lang=nix}}


==== EFI with multiple disks ====
==== EFI with multiple disks ====
Line 223: Line 221:


== See also ==
== See also ==
* [[GNU GRUB]]
* [https://wiki.archlinux.org/index.php/GRUB#Windows_installed_in_UEFI-GPT_Mode_menu_entry Arch Linux wiki#GRUB]
* [https://wiki.archlinux.org/index.php/GRUB#Windows_installed_in_UEFI-GPT_Mode_menu_entry Arch Linux wiki#GRUB]
* [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/loader/grub/install-grub.pl NixOS GRUB installer] (check the code block beginning with <nowiki># install EFI GRUB</nowiki>)
* [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/loader/grub/install-grub.pl NixOS GRUB installer] (check the code block beginning with <nowiki># install EFI GRUB</nowiki>)


[[Category:Cookbook]][[Category:NixOS]]
[[Category:Cookbook]]
[[Category:NixOS]]
[[Category:Booting]]