add windows container to hs

This commit is contained in:
Yan Lin 2025-10-28 13:51:41 +01:00
parent 0d17430cb0
commit 9fd8cc2e0d
2 changed files with 33 additions and 0 deletions

View file

@ -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;
};
};
}

View file

@ -52,5 +52,6 @@
--set MESA_GL_VERSION_OVERRIDE 3.3
'';
})
remmina
];
}