forked from M-Labs/nix-scripts
Add a baseRtc option so set the VM clock
This commit is contained in:
parent
9e6775fe8d
commit
3e7e6941b8
@ -6,6 +6,7 @@
|
|||||||
, autoUnattendParams ? {}
|
, autoUnattendParams ? {}
|
||||||
, packages ? []
|
, packages ? []
|
||||||
, impureMode ? false
|
, impureMode ? false
|
||||||
|
, baseRtc ? "2020-04-20T14:21:42"
|
||||||
, ...
|
, ...
|
||||||
}@attrs:
|
}@attrs:
|
||||||
|
|
||||||
@ -145,6 +146,8 @@ let
|
|||||||
"usb-storage,drive=virtio-win"
|
"usb-storage,drive=virtio-win"
|
||||||
# "CD" drive with windows features-on-demand
|
# "CD" drive with windows features-on-demand
|
||||||
# "-cdrom" "${fodIso}"
|
# "-cdrom" "${fodIso}"
|
||||||
|
# Set the base clock inside the VM
|
||||||
|
"-rtc=$(date -Iseconds -d @${baseRtc}"
|
||||||
] ++ lib.optional (!impureMode) "-nographic";
|
] ++ lib.optional (!impureMode) "-nographic";
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user