anchor.diff:    cfg = config.services.mysql;
   
     mysql = cfg.package;
  -  
  -  isMariaDB = 
  +
  +  isMariaDB =
       let
         pName = _p: (builtins.parseDrvName (_p.name)).name;
       in pName mysql == pName pkgs.mariadb;
  -
  -  atLeast55 = versionAtLeast mysql.mysqlVersion "5.5";
   
     pidFile = "${cfg.pidDir}/mysqld.pid";
   
  
positive.code:                     fi
                    '') cfg.initialDatabases}
  
                  ${optionalString (cfg.replication.role == "master" && atLeast55)
                    ''
                      # Set up the replication master
  
  
negative.code:     ${optionalString (cfg.bind != null) "bind-address = ${cfg.bind}" }
      ${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "log-bin=mysql-bin"}
      ${optionalString (cfg.replication.role == "master" || cfg.replication.role == "slave") "server-id = ${toString cfg.replication.serverId}"}
      ${optionalString (cfg.ensureUsers != [])
      ''
        plugin-load-add = auth_socket.so
  