summary refs log tree commit diff
path: root/nixos/modules/services/networking/avahi-daemon.nix
diff options
context:
space:
mode:
authorFlorian Jacob <projects+git@florianjacob.de>2017-02-28 14:10:52 +0100
committerFlorian Jacob <projects+git@florianjacob.de>2017-03-02 23:52:08 +0100
commit518e5c09a85345512d712ee964f367adb6401803 (patch)
treed38809bed8dc764421ffe9d1ff7e04719dcb8022 /nixos/modules/services/networking/avahi-daemon.nix
parent1254f1a46a56aba571eaa4fe636a1593631eeb25 (diff)
downloadnixpkgs-518e5c09a85345512d712ee964f367adb6401803.tar
nixpkgs-518e5c09a85345512d712ee964f367adb6401803.tar.gz
nixpkgs-518e5c09a85345512d712ee964f367adb6401803.tar.bz2
nixpkgs-518e5c09a85345512d712ee964f367adb6401803.tar.lz
nixpkgs-518e5c09a85345512d712ee964f367adb6401803.tar.xz
nixpkgs-518e5c09a85345512d712ee964f367adb6401803.tar.zst
nixpkgs-518e5c09a85345512d712ee964f367adb6401803.zip
avahi-daemon service: Add option to enable point-to-point interfaces.
Diffstat (limited to 'nixos/modules/services/networking/avahi-daemon.nix')
-rw-r--r--nixos/modules/services/networking/avahi-daemon.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/avahi-daemon.nix b/nixos/modules/services/networking/avahi-daemon.nix
index 6a786e75bbc..e7ef68c90b2 100644
--- a/nixos/modules/services/networking/avahi-daemon.nix
+++ b/nixos/modules/services/networking/avahi-daemon.nix
@@ -21,6 +21,7 @@ let
     use-ipv6=${if ipv6 then "yes" else "no"}
     ${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"}
     ${optionalString (domainName!=null) "domain-name=${domainName}"}
+    allow-point-to-point=${if allowPointToPoint then "yes" else "no"}
 
     [wide-area]
     enable-wide-area=${if wideArea then "yes" else "no"}
@@ -98,6 +99,15 @@ in
         '';
       };
 
+      allowPointToPoint = mkOption {
+        default = false;
+        description= ''
+          Whether to use POINTTOPOINT interfaces. Might make mDNS unreliable due to usually large
+          latencies with such links and opens a potential security hole by allowing mDNS access from Internet
+          connections. Use with care and YMMV!
+        '';
+      };
+
       wideArea = mkOption {
         default = true;
         description = ''Whether to enable wide-area service discovery.'';