about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-05-09 16:39:58 +0200
committerFlorian Klink <flokli@flokli.de>2020-05-11 16:14:51 +0200
commit23ba50611321035e02f5bfc2f5f809600ccc2f7b (patch)
tree1e85ac692cec3a434bd8bfbcaf8db3cdd501fef9 /nixos/modules/config
parent90bc3ec9b97ef3fb0ea6f34916bea1db780f110f (diff)
downloadnixlib-23ba50611321035e02f5bfc2f5f809600ccc2f7b.tar
nixlib-23ba50611321035e02f5bfc2f5f809600ccc2f7b.tar.gz
nixlib-23ba50611321035e02f5bfc2f5f809600ccc2f7b.tar.bz2
nixlib-23ba50611321035e02f5bfc2f5f809600ccc2f7b.tar.lz
nixlib-23ba50611321035e02f5bfc2f5f809600ccc2f7b.tar.xz
nixlib-23ba50611321035e02f5bfc2f5f809600ccc2f7b.tar.zst
nixlib-23ba50611321035e02f5bfc2f5f809600ccc2f7b.zip
nixos/nsswitch: improve error message
Show the config option triggering the assertion, so people don't
necessary lookup the nixpkgs source code.
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/nsswitch.nix2
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.";
       }
     ];