From 23ba50611321035e02f5bfc2f5f809600ccc2f7b Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 9 May 2020 16:39:58 +0200 Subject: [PATCH] nixos/nsswitch: improve error message Show the config option triggering the assertion, so people don't necessary lookup the nixpkgs source code. --- nixos/modules/config/nsswitch.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/nsswitch.nix b/nixos/modules/config/nsswitch.nix index 9d1b67d3bbf..d19d35a4890 100644 --- a/nixos/modules/config/nsswitch.nix +++ b/nixos/modules/config/nsswitch.nix @@ -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."; } ];