diff options
author | happysalada <raphael@megzari.com> | 2021-08-30 20:49:47 +0900 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-08-30 22:26:57 +0900 |
commit | d874a520155a73111f227744672254de0624aae5 (patch) | |
tree | ab3a0864e95640f0932308959bcfaf71c01e681b | |
parent | 3e25f7feaaf09c15167d0410999fc38da3872e6c (diff) |
epmd: provide default
-rw-r--r-- | nixos/modules/services/networking/epmd.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/epmd.nix b/nixos/modules/services/networking/epmd.nix index 6fc8ed2aa0efb..3899d164f16a7 100644 --- a/nixos/modules/services/networking/epmd.nix +++ b/nixos/modules/services/networking/epmd.nix @@ -28,7 +28,7 @@ in listenStream = mkOption { type = types.str; - default = null; + default = "[::]:4369"; description = '' the listenStream used by the systemd socket. see https://www.freedesktop.org/software/systemd/man/systemd.socket.html#ListenStream= for more informations. @@ -41,7 +41,7 @@ in ###### implementation config = mkIf cfg.enable { assertions = [{ - assertion = cfg.listenStream == null -> config.networking.enableIPv6; + assertion = cfg.listenStream == "[::]:4369" -> config.networking.enableIPv6; message = "epmd listens by default on ipv6, enable ipv6 or change config.services.epmd.listenStream"; }]; systemd.sockets.epmd = rec { @@ -49,7 +49,7 @@ in wantedBy = [ "sockets.target" ]; before = wantedBy; socketConfig = { - ListenStream = if cfg.listenStream != null then cfg.listenStream else "[::]:4369"; + ListenStream = cfg.listenStream; Accept = "false"; }; }; |