2023-08-18 19:42:50 -07:00
|
|
|
{ config, lib, pkgs, fetchgit, ... }:
|
|
|
|
|
|
|
|
let
|
2023-08-18 19:49:27 -07:00
|
|
|
palenight = builtins.fetchGit {
|
2023-08-18 19:54:00 -07:00
|
|
|
|
2023-08-18 19:42:50 -07:00
|
|
|
url = "https://git.sainnhe.dev/sainnhe/gitea-themes.git";
|
|
|
|
sparseCheckout = ''
|
|
|
|
dist
|
|
|
|
'';
|
2023-08-18 19:54:00 -07:00
|
|
|
rev = "d810451270e22f890fbe29c530bc7b9dd1ae97b4";
|
2023-08-18 19:42:50 -07:00
|
|
|
};
|
|
|
|
in
|
2023-05-06 10:12:27 -07:00
|
|
|
{
|
2023-05-27 09:56:50 -07:00
|
|
|
|
2023-05-27 10:59:36 -07:00
|
|
|
system.activationScripts.copyStuff = "cp -r ${../../../rsrcs/giteaCustomDir}/. /Aurora/Forgejo/custom";
|
2023-08-18 19:44:08 -07:00
|
|
|
system.activationScripts.copyTheme = "cp ${palenight}/theme-palenight.css /Aurora/Forgejo/custom/css/theme-palenight.css";
|
2023-05-27 10:59:36 -07:00
|
|
|
|
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 = {
|
|
|
|
|
2023-05-27 11:17:49 -07:00
|
|
|
"ui" = {
|
|
|
|
DEFAULT_THEME = "palenight";
|
|
|
|
THEMES = "auto,palenight,gitea,arc-green";
|
|
|
|
};
|
|
|
|
|
2023-05-06 10:12:27 -07:00
|
|
|
#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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|