From 1df38e2a1d747f6e519c5aec02118e9672640cc8 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 6 May 2020 00:29:35 +0200 Subject: [PATCH] nixos/nsswitch: update comment next to assertion --- nixos/modules/config/nsswitch.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/config/nsswitch.nix b/nixos/modules/config/nsswitch.nix index fd8425bfa2ee..9d1b67d3bbf3 100644 --- a/nixos/modules/config/nsswitch.nix +++ b/nixos/modules/config/nsswitch.nix @@ -95,7 +95,9 @@ with lib; config = { assertions = [ { - # generic catch if the NixOS module adding to nssModules does not prevent it with specific message. + # Prevent users from disabling nscd, with nssModules being set. + # 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."; }