anchor.diff:        ${optionalString (cfg.database.type == "mysql2" && cfg.database.socket != null) "socket: ${cfg.database.socket}"}
     '';
   
  -  configurationYml = pkgs.writeText "configuration.yml" ''
  -    default:
  -      scm_subversion_command: ${pkgs.subversion}/bin/svn
  -      scm_mercurial_command: ${pkgs.mercurial}/bin/hg
  -      scm_git_command: ${pkgs.gitAndTools.git}/bin/git
  -      scm_cvs_command: ${pkgs.cvs}/bin/cvs
  -      scm_bazaar_command: ${pkgs.breezy}/bin/bzr
  -      scm_darcs_command: ${pkgs.darcs}/bin/darcs
  -
  -    ${cfg.extraConfig}
  -  '';
  +  configurationYml = format.generate "configuration.yml" cfg.settings;
   
     additionalEnvironment = pkgs.writeText "additional_environment.rb" ''
       config.logger = Logger.new("${cfg.stateDir}/log/production.log", 14, 1048576)
  
positive.code:         message = "services.redmine.database.host must be set to localhost if services.redmine.database.createLocally is set to true";
        }
      ];
  
      services.mysql = mkIf mysqlLocal {
        enable = true;
  
negative.code:     };
    };
  
    # implementation
    config = mkIf cfg.enable {
  
      assertions = [
  