summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJani <ljani@users.noreply.github.com>2018-07-28 12:48:08 +0300
committerJani <ljani@users.noreply.github.com>2018-07-28 12:48:08 +0300
commitd17770d0d543e64475bcdf5611ac0dc221b14158 (patch)
treea9829cb50c626634411d3e494d1da5ac44e7f417 /nixos
parent010ebe1276e48751070e6447e56f200338a4a994 (diff)
downloadnixpkgs-d17770d0d543e64475bcdf5611ac0dc221b14158.tar
nixpkgs-d17770d0d543e64475bcdf5611ac0dc221b14158.tar.gz
nixpkgs-d17770d0d543e64475bcdf5611ac0dc221b14158.tar.bz2
nixpkgs-d17770d0d543e64475bcdf5611ac0dc221b14158.tar.lz
nixpkgs-d17770d0d543e64475bcdf5611ac0dc221b14158.tar.xz
nixpkgs-d17770d0d543e64475bcdf5611ac0dc221b14158.tar.zst
nixpkgs-d17770d0d543e64475bcdf5611ac0dc221b14158.zip
nixos/avahi: add support for extraConfig
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/avahi-daemon.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/avahi-daemon.nix b/nixos/modules/services/networking/avahi-daemon.nix
index 2ec5a10b481..488d9877b5e 100644
--- a/nixos/modules/services/networking/avahi-daemon.nix
+++ b/nixos/modules/services/networking/avahi-daemon.nix
@@ -37,6 +37,7 @@ let
 
     [reflector]
     enable-reflector=${yesNo reflector}
+    ${extraConfig}
   '';
 
 in
@@ -176,6 +177,14 @@ in
         '';
       };
 
+      extraConfig = mkOption {
+        default = "";
+        type = types.lines;
+        description = ''
+          Extra config to append to avahi-daemon.conf.
+        '';
+      };
+
     };
 
   };