nsswitch: use libnss_resolve if resolved is enabled

This commit is contained in:
Jörg Thalheim 2016-12-15 15:16:52 +01:00 committed by Jörg Thalheim
parent e6cb889faa
commit 323f28d40e
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -10,10 +10,12 @@ let
inherit (config.services.samba) nsswins;
ldap = (config.users.ldap.enable && config.users.ldap.nsswitch);
sssd = config.services.sssd.enable;
resolved = config.services.resolved.enable;
hostArray = [ "files" "mymachines" ]
++ optionals nssmdns [ "mdns_minimal [!UNAVAIL=return]" ]
++ optionals nsswins [ "wins" ]
++ optionals resolved ["resolv [!UNAVAIL=return]"]
++ [ "dns" ]
++ optionals nssmdns [ "mdns" ]
++ ["myhostname" ];