Dual Booting NixOS and Windows: Difference between revisions
→systemd-boot: more elegant way to dual-boot windows in uefi mode (at least as of 24.11) |
m Add category booting |
||
(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 209: | Line 209: | ||
== System time == | == System time == | ||
System clock might be incorrect after booting Windows and going back to | System clock might be incorrect after booting Windows and going back to NixOS. | ||
It can be fixed by setting RTC time standard to UTC on Windows (''recommended'', see [https://wiki.archlinux.org/title/System_time#UTC_in_Microsoft_Windows how to do this]). | |||
Alternatively, you can set NixOS RTC time standard to localtime, compatible with Windows in its default configuration: | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
Line 218: | Line 220: | ||
}</nowiki>}} | }</nowiki>}} | ||
See [https://wiki.archlinux.org/title/System_time#Time_standard Arch Linux wiki#System time]. | See [https://wiki.archlinux.org/title/System_time#Time_standard Arch Linux wiki#System time] for discussion of both options. | ||
== 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]] |