2023-06-08 18:30:16 +02:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2020-10-28 00:39:54 +01:00
|
|
|
# Set up Gitea with LFS support
|
2019-11-16 10:55:10 +01:00
|
|
|
services.gitea = {
|
|
|
|
enable = true;
|
|
|
|
database = {
|
|
|
|
type = "postgres";
|
2022-06-06 23:12:54 +02:00
|
|
|
passwordFile = config.age.secrets.gitea.path;
|
2019-11-16 10:55:10 +01:00
|
|
|
};
|
|
|
|
repositoryRoot = "/vault/git";
|
2019-12-09 06:56:30 +01:00
|
|
|
appName = "Gitea";
|
2022-11-21 09:52:56 +01:00
|
|
|
lfs = {
|
|
|
|
enable = true;
|
|
|
|
contentDir = "${config.services.gitea.repositoryRoot}/data/lfs";
|
|
|
|
};
|
2022-08-15 21:30:37 +02:00
|
|
|
settings = {
|
2023-06-08 18:30:16 +02:00
|
|
|
server = {
|
|
|
|
DISABLE_SSH = true;
|
|
|
|
DOMAIN = "git.coolneng.duckdns.org";
|
|
|
|
ROOTURL = "https://git.coolneng.duckdns.org";
|
|
|
|
};
|
2022-08-15 21:30:37 +02:00
|
|
|
ui.DEFAULT_THEME = "arc-green";
|
|
|
|
session.COOKIE_SECURE = true;
|
2023-03-23 06:56:25 +01:00
|
|
|
actions.ENABLED = true;
|
2022-08-15 21:30:37 +02:00
|
|
|
};
|
2019-11-16 10:55:10 +01:00
|
|
|
};
|
2023-06-08 18:30:16 +02:00
|
|
|
|
|
|
|
# Start services after ZFS mount
|
|
|
|
systemd.services.gitea.unitConfig.RequiresMountsFor = [ "vault-git.mount" ];
|
2019-11-16 10:55:10 +01:00
|
|
|
}
|