Add a baseRtc option so set the VM clock
This commit is contained in:
parent
9e6775fe8d
commit
3e7e6941b8
|
@ -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
|
||||
''
|
||||
|
|
Loading…
Reference in New Issue