diff options
author | Robin Gloster <mail@glob.in> | 2017-07-11 21:59:40 +0200 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2020-09-25 12:03:42 +0200 |
commit | a4855047408261be2a2280f61ca9689bbbf742db (patch) | |
tree | 41246eaa9cb2542573a75661fb07277e41f354e3 /nixos/modules/config | |
parent | 1179840f9a88b8a548f4b11d1a03aa25a790c379 (diff) |
config.users.ldap: do not include nss module if turned off
Diffstat (limited to 'nixos/modules/config')
-rw-r--r-- | nixos/modules/config/ldap.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix index 1a5dbcd4e26ba..5b81d5c0c5485 100644 --- a/nixos/modules/config/ldap.nix +++ b/nixos/modules/config/ldap.nix @@ -240,9 +240,9 @@ in ''; }; - system.nssModules = singleton ( + system.nssModules = mkIf cfg.nsswitch (singleton ( if cfg.daemon.enable then nss_pam_ldapd else nss_ldap - ); + )); system.nssDatabases.group = optional cfg.nsswitch "ldap"; system.nssDatabases.passwd = optional cfg.nsswitch "ldap"; |