nixos/avahi: fix nss module
mdns_minimal must be placed before resolve in nsswitch.conf
This commit is contained in:
parent
b2efedd5e5
commit
8294af0284
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue