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:         description = "Location where MySQL stores its table files";
        };
  
        extraOptions = mkOption {
          type = types.lines;
          default = "";
          example = ''
            key_buffer_size = 6G
            table_cache = 1600
  
negative.code: 
          after = [ "network.target" ];
          wantedBy = [ "multi-user.target" ];
          restartTriggers = [ cfg.configFile ];
  
          unitConfig.RequiresMountsFor = "${cfg.dataDir}";
  
  