nixos/avahi: fix nss module

mdns_minimal must be placed before resolve in nsswitch.conf
This commit is contained in:
Ben Wolsieffer 2020-10-03 21:27:03 -04:00 committed by Bjørn Forsman
parent b2efedd5e5
commit 8294af0284

View file

@ -239,7 +239,7 @@ in
system.nssModules = optional cfg.nssmdns pkgs.nssmdns; system.nssModules = optional cfg.nssmdns pkgs.nssmdns;
system.nssDatabases.hosts = optionals cfg.nssmdns (mkMerge [ system.nssDatabases.hosts = optionals cfg.nssmdns (mkMerge [
[ "mdns_minimal [NOTFOUND=return]" ] (mkOrder 900 [ "mdns_minimal [NOTFOUND=return]" ]) # must be before resolve
(mkOrder 1501 [ "mdns" ]) # 1501 to ensure it's after dns (mkOrder 1501 [ "mdns" ]) # 1501 to ensure it's after dns
]); ]);