From 3e7e6941b8dc7b06ac9c05611ffbb4166b5f98aa Mon Sep 17 00:00:00 2001 From: adisbladis Date: Sun, 3 May 2020 15:25:59 +0100 Subject: [PATCH] Add a baseRtc option so set the VM clock --- artiq-fast/windows/win.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq-fast/windows/win.nix b/artiq-fast/windows/win.nix index 6d57a29..75956cb 100644 --- a/artiq-fast/windows/win.nix +++ b/artiq-fast/windows/win.nix @@ -6,6 +6,7 @@ , autoUnattendParams ? {} , packages ? [] , impureMode ? false +, baseRtc ? "2020-04-20T14:21:42" , ... }@attrs: @@ -145,6 +146,8 @@ let "usb-storage,drive=virtio-win" # "CD" drive with windows features-on-demand # "-cdrom" "${fodIso}" + # Set the base clock inside the VM + "-rtc=$(date -Iseconds -d @${baseRtc}" ] ++ lib.optional (!impureMode) "-nographic"; in ''