From 9581cce1afcf2b9d93e051bda7761860a2c10a21 Mon Sep 17 00:00:00 2001 From: Pierre Olivier Martel Date: Wed, 4 Feb 2026 04:46:15 -0500 Subject: [PATCH] Fix Windows VM timezone and add a confirmation prompt before removing the VM (#4489) * Add confirmation prompt before removing Windows VM * Fix Windows VM timezone defaults to UTC --- bin/omarchy-windows-vm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/omarchy-windows-vm b/bin/omarchy-windows-vm index 66cc296c..4fe877f3 100755 --- a/bin/omarchy-windows-vm +++ b/bin/omarchy-windows-vm @@ -185,6 +185,8 @@ services: DISK_SIZE: "$SELECTED_DISK" USERNAME: "$USERNAME" PASSWORD: "$PASSWORD" + TZ: "$(timedatectl show -p Timezone --value 2>/dev/null || echo UTC)" + ARGUMENTS: "-rtc base=localtime,clock=host,driftfix=slew" devices: - /dev/kvm - /dev/net/tun @@ -240,6 +242,11 @@ EOF } remove_windows() { + if ! gum confirm --default=false "Remove Windows VM and delete all associated data?"; then + echo "Removal cancelled by user" + exit 1 + fi + echo "Removing Windows VM..." docker-compose -f "$COMPOSE_FILE" down 2>/dev/null || true