nixos/nsswitch: update comment next to assertion

This commit is contained in:
Florian Klink 2020-05-06 00:29:35 +02:00
parent 0f6f544aaf
commit 1df38e2a1d

View File

@ -95,7 +95,9 @@ with lib;
config = {
assertions = [
{
# generic catch if the NixOS module adding to nssModules does not prevent it with specific message.
# Prevent users from disabling nscd, with nssModules being set.
# 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.";
}