diff --git a/nixos/modules/config/nsswitch.nix b/nixos/modules/config/nsswitch.nix index 91a36cef10e67..d109be47edcc3 100644 --- a/nixos/modules/config/nsswitch.nix +++ b/nixos/modules/config/nsswitch.nix @@ -14,14 +14,18 @@ with lib; internal = true; default = []; description = '' - Search path for NSS (Name Service Switch) modules. This allows - several DNS resolution methods to be specified via + Path containing NSS (Name Service Switch) modules. + This allows several DNS resolution methods to be specified via /etc/nsswitch.conf. ''; apply = list: { inherit list; - path = makeLibraryPath list; + path = pkgs.symlinkJoin + { + name = "nss-modules"; + paths = list; + } + "/lib"; }; };