nixos/avahi: fix nss module
mdns_minimal must be placed before resolve in nsswitch.conf
This commit is contained in:
parent
b2efedd5e5
commit
8294af0284
@ -239,7 +239,7 @@ in
|
||||
|
||||
system.nssModules = optional cfg.nssmdns pkgs.nssmdns;
|
||||
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
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user