anchor.diff:  
           port = mkOption {
             type = types.int;
  -          default = 3306;
  +          default = (if !usePostgresql then 3306 else pg.port);
             description = "Database host port.";
           };
   
  
positive.code:     USER = ${cfg.database.user}
      PASSWD = #dbpass#
      PATH = ${cfg.database.path}
  
      [repository]
      ROOT = ${cfg.repositoryRoot}
  
negative.code:           default = "${cfg.stateDir}/data/gitea.db";
            description = "Path to the sqlite3 database file.";
          };
  
          createDatabase = mkOption {
            type = types.bool;
            default = true;
            description = ''
              Whether to create a local postgresql database automatically.
              This only applies if database type "postgres" is selected.
            '';
          };
        };
  
        appName = mkOption {
  