{...}: {
  imports = [ ../fail2ban/gitea.nix ];
  services.gitea = {
    enable = true;
    settings = {
      server = {
        ROOT_URL = "https://git.xenia.me.uk";
        DOMAIN = "git.xenia.me.uk";
        START_SSH_SERVER = true;
        SSH_DOMAIN = "git.xenia.me.uk";
        SSH_PORT = 2222;
        SSH_LISTEN_PORT = 30922;
      };
      service.DISABLE_REGISTRATION = true;
      ui = {
        THEMES = "auto,gitea,arc-green,catppuccin-latte-lavender,catppuccin-frappe-lavender,catppuccin-macchiato-lavender,catppuccin-mocha-lavender";
      };
    };
    appName = "Gitea";
  };
}