diff --git a/nixos/modules/podman.nix b/nixos/modules/podman.nix index 27fb33d..90dfa93 100644 --- a/nixos/modules/podman.nix +++ b/nixos/modules/podman.nix @@ -22,7 +22,13 @@ virtualisation.oci-containers.backend = "podman"; environment.systemPackages = [ pkgs.docker-client ]; - # Podman's DNS for container networks, on each bridge's gateway + # Podman's DNS for container networks, on each bridge's gateway. The + # NixOS module opens it on podman0 only; CI jobs and compose stacks get + # networks of their own (podman1, podman2, ...). + networking.firewall.interfaces."podman*" = { + allowedUDPPorts = [ 53 ]; + allowedTCPPorts = [ 53 ]; + }; asxpio.security.ports = [ "tcp/53/aardvark-dns" "udp/53/aardvark-dns"