From f7dc92a17654fafeecb3ed3c88188fa04d7073b6 Mon Sep 17 00:00:00 2001 From: Katalin Rebhan Date: Thu, 23 Apr 2026 01:11:53 +0200 Subject: [PATCH] nixos/epmd: allow setting multiple listen addresses In some contexts, for example systems with net.ipv6.bindv6only turned on, it is desirable to set multiple addresses to listen on. The systemd unit option already allows this, so just expose it on the module. --- nixos/modules/services/networking/epmd.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/epmd.nix b/nixos/modules/services/networking/epmd.nix index d2aceb5a9bb1..08e9400702da 100644 --- a/nixos/modules/services/networking/epmd.nix +++ b/nixos/modules/services/networking/epmd.nix @@ -5,6 +5,8 @@ ... }: let + inherit (lib.types) listOf oneOf str; + cfg = config.services.epmd; in { @@ -21,7 +23,10 @@ in }; package = lib.mkPackageOption pkgs "erlang" { }; listenStream = lib.mkOption { - type = lib.types.str; + type = oneOf [ + str + (listOf str) + ]; default = "[::]:4369"; description = '' the listenStream used by the systemd socket.