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:   };
  
    config = mkIf cfg.enable {
      services.postgresql.enable = mkIf usePostgresql (mkDefault true);
  
      systemd.services.gitea = {
        description = "gitea";
        after = [ "network.target" "postgresql.service" ];
        wantedBy = [ "multi-user.target" ];
        path = [ pkgs.gitea.bin ];
  
  