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.
This commit is contained in:
Katalin Rebhan
2026-04-23 01:20:02 +02:00
parent ff08047ced
commit f7dc92a176
+6 -1
View File
@@ -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.