update firewall when enabled.

This commit is contained in:
Joseph Hanson 2024-07-14 06:42:18 -05:00
parent 0b65a1cbed
commit a12dcd6493
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -16,6 +16,10 @@ in
};
config = mkIf cfg.enable {
networking.firewall = {
allowedTCPPorts = [ 8080 8443 8880 8843 ];
allowedUDPPorts = [ 3478 ];
};
virtualisation.oci-containers.containers.${app} = {
image = "${image}";
autoStart = true;