Skip to content

Commit

Permalink
nixos/nsswitch: improve error message
Browse files Browse the repository at this point in the history
Show the config option triggering the assertion, so people don't
necessary lookup the nixpkgs source code.
  • Loading branch information
flokli committed May 11, 2020
1 parent 90bc3ec commit 23ba506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/config/nsswitch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
];

Expand Down

0 comments on commit 23ba506

Please sign in to comment.