diff options
author | Jörg Thalheim <joerg@higgsboson.tk> | 2016-12-15 15:16:52 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-05-24 01:10:36 +0100 |
commit | 323f28d40e89dbd73722def277dcd31ea236a122 (patch) | |
tree | b58920a8c38f61833b19488656dbb54869cd7d8b /nixos/modules/config/nsswitch.nix | |
parent | e6cb889faa1dead8e4320a294e53ea3000c4fd84 (diff) |
nsswitch: use libnss_resolve if resolved is enabled
Diffstat (limited to 'nixos/modules/config/nsswitch.nix')
-rw-r--r-- | nixos/modules/config/nsswitch.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/config/nsswitch.nix b/nixos/modules/config/nsswitch.nix index 4e5de421d8ac..d541fff140eb 100644 --- a/nixos/modules/config/nsswitch.nix +++ b/nixos/modules/config/nsswitch.nix @@ -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" ]; |