anchor.diff:              smtp_settings:
                 address: mail.example.com
                 port: 25
  +        '';
  +      };
  +
  +      extraEnv = mkOption {
  +        type = types.lines;
  +        default = "";
  +        description = ''
  +          Extra configuration in additional_environment.rb.
  +
  +          See https://svn.redmine.org/redmine/trunk/config/additional_environment.rb.example
  +        '';
  +        example = literalExample ''
  +          config.logger.level = Logger::DEBUG
           '';
         };
   
  
positive.code:         # link in the application configuration
          ln -fs ${configurationYml} "${cfg.stateDir}/config/configuration.yml"
  
  
          # link in all user specified themes
          rm -rf "${cfg.stateDir}/public/themes/"*
  
negative.code:       scm_darcs_command: ${pkgs.darcs}/bin/darcs
  
      ${cfg.extraConfig}
    '';
  
    additionalEnvironment = pkgs.writeText "additional_environment.rb" ''
      config.logger = Logger.new("${cfg.stateDir}/log/production.log", 14, 1048576)
      config.logger.level = Logger::INFO
  
      ${cfg.extraEnv}
    '';
  
    unpackTheme = unpack "theme";
  