nixos/nsswitch: improve error message
Show the config option triggering the assertion, so people don't necessary lookup the nixpkgs source code.
This commit is contained in:
parent
90bc3ec9b9
commit
23ba506113
|
@ -99,7 +99,7 @@ with lib;
|
||||||
# If disabling nscd is really necessary, it's still possible to opt out
|
# If disabling nscd is really necessary, it's still possible to opt out
|
||||||
# by forcing config.system.nssModules to [].
|
# by forcing config.system.nssModules to [].
|
||||||
assertion = config.system.nssModules.path != "" -> config.services.nscd.enable;
|
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.";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue