anchor.diff:    installOptions =
       "${mysqldOptions} ${lib.optionalString isMysqlAtLeast57 "--insecure"}";
   
  +  settingsFile = pkgs.writeText "my.cnf" (
  +    generators.toINI { listsAsDuplicateKeys = true; } cfg.settings +
  +    optionalString (cfg.extraOptions != null) "[mysqld]\n${cfg.extraOptions}"
  +  );
  +
   in
   
   {
  
positive.code: 
          after = [ "network.target" ];
          wantedBy = [ "multi-user.target" ];
          restartTriggers = [ config.environment.etc."my.cnf".source ];
  
          unitConfig.RequiresMountsFor = "${cfg.dataDir}";
  
  
negative.code: 
      environment.systemPackages = [mysql];
  
      environment.etc."my.cnf".source = cfg.configFile;
  
      systemd.tmpfiles.rules = [
        "d '${cfg.dataDir}' 0700 ${cfg.user} mysql -"
  