summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorhappysalada <raphael@megzari.com>2021-08-30 20:49:47 +0900
committerRaphael Megzari <raphael@megzari.com>2021-08-30 22:26:57 +0900
commitd874a520155a73111f227744672254de0624aae5 (patch)
treeab3a0864e95640f0932308959bcfaf71c01e681b /nixos/modules/services/networking
parent3e25f7feaaf09c15167d0410999fc38da3872e6c (diff)
downloadnixpkgs-d874a520155a73111f227744672254de0624aae5.tar
nixpkgs-d874a520155a73111f227744672254de0624aae5.tar.gz
nixpkgs-d874a520155a73111f227744672254de0624aae5.tar.bz2
nixpkgs-d874a520155a73111f227744672254de0624aae5.tar.lz
nixpkgs-d874a520155a73111f227744672254de0624aae5.tar.xz
nixpkgs-d874a520155a73111f227744672254de0624aae5.tar.zst
nixpkgs-d874a520155a73111f227744672254de0624aae5.zip
epmd: provide default
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/epmd.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/epmd.nix b/nixos/modules/services/networking/epmd.nix
index 6fc8ed2aa0e..3899d164f16 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";
       };
     };