Disable Windows VM restart at boot

This commit is contained in:
David Heinemeier Hansson
2026-07-29 19:26:26 -07:00
parent 559ab04209
commit eb0f41cd5d
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ services:
volumes:
- $HOME/.windows:/storage
- $HOME/Windows:/shared
restart: unless-stopped
restart: "no"
stop_grace_period: 2m
EOF
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
set -euo pipefail
source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh"
windows_vm_command="$ROOT/bin/omarchy-windows-vm"
rg -q '^ restart: "no"$' "$windows_vm_command" ||
fail "Windows VM uses manual startup by default"
pass "Windows VM uses manual startup by default"
if rg -q '^ restart: unless-stopped$' "$windows_vm_command"; then
fail "Windows VM does not restart automatically at boot"
fi
pass "Windows VM does not restart automatically at boot"