diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-07-12 14:23:15 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-08-04 02:10:11 +0200 |
commit | 3b472d78a846b7ae029bb5192f1be9b5d870f4af (patch) | |
tree | 7c426163e379023360f1596c0a6ffbc022dd849c /nixos/modules/services/networking/avahi-daemon.nix | |
parent | 32e7904624d1d79faf4ba0d3389d1834614c986c (diff) |
avahi-daemon service: add cacheEntriesMax option
Diffstat (limited to 'nixos/modules/services/networking/avahi-daemon.nix')
-rw-r--r-- | nixos/modules/services/networking/avahi-daemon.nix | 10 |
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 f4d0fc822dea..9ccdacb20e91 100644 --- a/nixos/modules/services/networking/avahi-daemon.nix +++ b/nixos/modules/services/networking/avahi-daemon.nix @@ -22,6 +22,7 @@ let ${optionalString (interfaces!=null) "allow-interfaces=${concatStringsSep "," interfaces}"} ${optionalString (domainName!=null) "domain-name=${domainName}"} allow-point-to-point=${yesNo allowPointToPoint} + ${optionalString (cacheEntriesMax!=null) "cache-entries-max=${toString cacheEntriesMax}"} [wide-area] enable-wide-area=${yesNo wideArea} @@ -166,6 +167,15 @@ in ''; }; + cacheEntriesMax = mkOption { + default = null; + type = types.nullOr types.int; + description = '' + Number of resource records to be cached per interface. Use 0 to + disable caching. Avahi daemon defaults to 4096 if not set. + ''; + }; + }; }; |