nixos/nsswitch: improve error message

Show the config option triggering the assertion, so people don't
necessary lookup the nixpkgs source code.
gstqt5
Florian Klink 2020-05-09 16:39:58 +02:00
parent 90bc3ec9b9
commit 23ba506113
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ with lib;
# If disabling nscd is really necessary, it's still possible to opt out
# by forcing config.system.nssModules to [].
assertion = config.system.nssModules.path != "" -> config.services.nscd.enable;
message = "Loading NSS modules from path ${config.system.nssModules.path} requires nscd being enabled.";
message = "Loading NSS modules from system.nssModules (${config.system.nssModules.path}), requires services.nscd.enable being set to true.";
}
];