anchor.diff:    '';
   
     mosquittoConf = pkgs.writeText "mosquitto.conf" ''
  -    pid_file /run/mosquitto/pid
       acl_file ${aclFile}
       persistence true
       allow_anonymous ${boolToString cfg.allowAnonymous}
  
positive.code:           if c.hashedPassword != null then
              "echo '${n}:${c.hashedPassword}' >> ${cfg.dataDir}/passwd"
            else optionalString (c.password != null)
              "${pkgs.mosquitto}/bin/mosquitto_passwd -b ${cfg.dataDir}/passwd ${n} ${c.password}"
          ) cfg.users);
      };
  
  
negative.code:       wantedBy = [ "multi-user.target" ];
        after = [ "network.target" ];
        serviceConfig = {
          Type = "notify";
          NotifyAccess = "main";
          User = "mosquitto";
          Group = "mosquitto";
          RuntimeDirectory = "mosquitto";
          WorkingDirectory = cfg.dataDir;
          Restart = "on-failure";
          ExecStart = "${pkgs.mosquitto}/bin/mosquitto -c ${mosquittoConf}";
          ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
        };
        preStart = ''
          rm -f ${cfg.dataDir}/passwd
  