Dual Booting NixOS and Windows: Difference between revisions
imported>Opoppe m Fix typo |
imported>Sinity No edit summary |
||
Line 1: | Line 1: | ||
This | = Bootloader = | ||
This section explains various methods to have the bootloader prompt whether to boot windows or NixOS. | |||
== Autodetection with os-prober == | == Autodetection with os-prober == | ||
Line 93: | Line 95: | ||
}; | }; | ||
}; | }; | ||
}</nowiki>}} | |||
== 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. | |||
Setting RTC time standard to localtime, compatible with Windows in its default configuration: | |||
{{File|/etc/nixos/configuration.nix|nix|<nowiki> | |||
{ config, pkgs, ... }: { | |||
# ... | |||
time.hardwareClockInLocalTime = true; | |||
# ... | |||
}</nowiki>}} | }</nowiki>}} | ||