diff options
author | Florian Klink <flokli@flokli.de> | 2020-05-09 16:39:58 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-05-11 16:14:51 +0200 |
commit | 23ba50611321035e02f5bfc2f5f809600ccc2f7b (patch) | |
tree | 1e85ac692cec3a434bd8bfbcaf8db3cdd501fef9 | |
parent | 90bc3ec9b97ef3fb0ea6f34916bea1db780f110f (diff) |
nixos/nsswitch: improve error message
Show the config option triggering the assertion, so people don't
necessary lookup the nixpkgs source code.
-rw-r--r-- | nixos/modules/config/nsswitch.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/nsswitch.nix b/nixos/modules/config/nsswitch.nix index 9d1b67d3bbf3..d19d35a48906 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."; } ]; |