novnc container

This commit is contained in:
2025-08-04 19:07:33 -05:00
parent 7fe321290f
commit 5edfc378b3
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{ config, lib, ... }: {
options.sysconfig.opts.virtualization.novnc.enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
config = lib.mkIf config.sysconfig.opts.virtualization.novnc.enable {
containers.novnc = {
autoStart = true;
privateNetwork = true;
hostAddress = "192.168.100.10";
localAddress = "192.168.100.30";
config = {
systemd.services.novnc = {
enable = true;
script = ''
novnc --listen 80 --vnc 192.168.100.10:5900
'';
};
networking.firewall.allowedTCPPorts = [ 80 ];
system.stateVersion = "25.05";
};
};
};
}