diff --git a/modules/docker/default.nix b/modules/docker/default.nix index cc7db6e..47d1024 100644 --- a/modules/docker/default.nix +++ b/modules/docker/default.nix @@ -5,6 +5,8 @@ }: with lib; let cfg = config.eboskma.podman; + + podmanInterfaces = if config.networking.nftables.enable then "podman*" else "podman+"; in { options.eboskma.podman = { @@ -55,7 +57,7 @@ in users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "podman" ]; # Make DNS work in containers - networking.firewall.interfaces."podman*" = { + networking.firewall.interfaces.${podmanInterfaces} = { allowedUDPPorts = [ 53 ]; allowedTCPPorts = [ 53 ]; };