Dual Booting NixOS and Windows: Difference between revisions

Nicdumz (talk | contribs)
systemd-boot: more elegant way to dual-boot windows in uefi mode (at least as of 24.11)
Nicdumz (talk | contribs)
System time: arch linux recommends setting MS to UTC, point this out
Line 209: Line 209:
== System time ==
== System time ==


System clock might be incorrect after booting Windows and going back to the NixOS. It can be fixed by either setting RTC time standard to UTC on Windows, or setting it to localtime on NixOS.
System clock might be incorrect after booting Windows and going back to NixOS.


Setting RTC time standard to localtime, compatible with Windows in its default configuration:
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 ==