nicks-nix-config/hosts/Alaska/modules/forgejo.nix
2023-05-27 10:17:20 -07:00

35 lines
819 B
Nix

{ config, lib, pkgs, ... }:
{
services.gitea = {
enable = true;
package = pkgs.forgejo;
stateDir = "/Aurora/Forgejo";
customDir = "${../../../rsrcs/giteaCustomDir}";
appName = "Nickiel's Repos";
settings = {
#ui.DEFAULT_THEME = "arc-green";
# Enable this after the first user has been created
service.DISABLE_REGISTRATION = true;
#session.COOKIE_SECURE = true;
# external facing ui
server = {
ROOT_URL = "https://git.nickiel.net";
HTTP_PORT = 3001;
DOMAIN = "git.nickiel.net";
LANDING_PAGE = "/explore/repos";
};
mailer = {
ENABLED = true;
MAILER_TYPE = "sendmail";
FROM = "noreply@nickiel.net";
SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail";
};
};
};
}