From 9fd8cc2e0de9ab4cb27bfd6ff186c6cbaedec6db Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Tue, 28 Oct 2025 13:51:41 +0100 Subject: [PATCH] add windows container to `hs` --- hosts/nixos/hs/containers.nix | 32 ++++++++++++++++++++++++++++++++ hosts/nixos/thinkpad/home.nix | 1 + 2 files changed, 33 insertions(+) diff --git a/hosts/nixos/hs/containers.nix b/hosts/nixos/hs/containers.nix index a3c5b86..8f56770 100644 --- a/hosts/nixos/hs/containers.nix +++ b/hosts/nixos/hs/containers.nix @@ -399,5 +399,37 @@ in autoStart = true; }; + + # Windows 10 LTSC in container using dockur/windows + windows = { + image = "dockurr/windows"; + + volumes = [ + "/var/lib/containers/windows:/storage" + ]; + + environment = { + VERSION = "10l"; # Windows 10 LTSC + RAM_SIZE = "8G"; + CPU_CORES = "4"; + DISK_SIZE = "256G"; + }; + + ports = [ + "5009:8006" # Web-based VNC viewer + "3389:3389/tcp" # RDP access (TCP) + "3389:3389/udp" # RDP access (UDP) + ]; + + extraOptions = [ + "--device=/dev/kvm" # KVM hardware acceleration + "--device=/dev/net/tun" # Network bridging + "--cap-add=NET_ADMIN" # Network administration capability + "--stop-timeout=120" # 2 minute graceful shutdown + ]; + + autoStart = true; + }; + }; } diff --git a/hosts/nixos/thinkpad/home.nix b/hosts/nixos/thinkpad/home.nix index e6ba01b..9304d7b 100644 --- a/hosts/nixos/thinkpad/home.nix +++ b/hosts/nixos/thinkpad/home.nix @@ -52,5 +52,6 @@ --set MESA_GL_VERSION_OVERRIDE 3.3 ''; }) + remmina ]; }