anchor.diff:  # Configuration for the Name Service Switch (/etc/nsswitch.conf).
   
  -{ config, lib, ... }:
  +{ config, lib, pkgs, ... }:
   
   with lib;
   
  
positive.code:   ldap = canLoadExternalModules && (config.users.ldap.enable && config.users.ldap.nsswitch);
    sssd = canLoadExternalModules && config.services.sssd.enable;
    resolved = canLoadExternalModules && config.services.resolved.enable;
  
    hostArray = [ "files" ]
      ++ optional mymachines "mymachines"
  
negative.code:     ++ optional sssd "sss"
      ++ optional ldap "ldap"
      ++ optional mymachines "mymachines"
      ++ optional googleOsLogin "cache_oslogin oslogin"
      ++ [ "systemd" ];
  
    shadowArray = [ "files" ]
  