2023-05-06 10:12:27 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-05-27 09:56:50 -07:00
|
|
|
home.file."/Aurora/Forgejo/custom" = {
|
|
|
|
source = ../../../rscs/giteaCustomDir;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
|
2023-05-06 10:12:27 -07:00
|
|
|
services.gitea = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.forgejo;
|
|
|
|
stateDir = "/Aurora/Forgejo";
|
2023-05-27 09:56:50 -07:00
|
|
|
appName = "Nickiel's Repos";
|
2023-05-06 10:12:27 -07:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
|
|
|
#ui.DEFAULT_THEME = "arc-green";
|
|
|
|
# Enable this after the first user has been created
|
2023-05-06 10:28:31 -07:00
|
|
|
service.DISABLE_REGISTRATION = true;
|
2023-05-06 10:12:27 -07:00
|
|
|
|
2023-05-06 10:28:31 -07:00
|
|
|
#session.COOKIE_SECURE = true;
|
2023-05-06 10:12:27 -07:00
|
|
|
# external facing ui
|
|
|
|
server = {
|
|
|
|
ROOT_URL = "https://git.nickiel.net";
|
|
|
|
HTTP_PORT = 3001;
|
|
|
|
DOMAIN = "git.nickiel.net";
|
|
|
|
LANDING_PAGE = "/explore/repos";
|
|
|
|
};
|
2023-05-27 09:56:50 -07:00
|
|
|
|
|
|
|
mailer = {
|
|
|
|
ENABLED = true;
|
|
|
|
MAILER_TYPE = "sendmail";
|
|
|
|
FROM = "noreply@nickiel.net";
|
|
|
|
SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail";
|
|
|
|
};
|
2023-05-06 10:12:27 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|