anchor.diff:            };
         }
   
  -      (mkIf config.services.samba.enable {
  +      (mkIf cfg.enable {
   
           system.nssModules = optional cfg.nsswins samba;
   
  
positive.code:   ###### implementation
  
    config = mkMerge
      [ { # Always provide a smb.conf to shut up programs like smbclient and smbspool.
          environment.etc = singleton
            { source =
                if cfg.enable then configFile
  
negative.code:           };
  
            services = {
              "samba-smbd" = daemonService "smbd" "-F";
              "samba-nmbd" = mkIf cfg.enableNmbd (daemonService "nmbd" "-F");
              "samba-winbindd" = mkIf cfg.enableWinbindd (daemonService "winbindd" "-F");
              "samba-setup" = {
                description = "Samba Setup Task";
                script = setupScript;
  