2020-08-24 15:07:55 +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;
|
2020-08-24 15:07:55 +02:00
|
|
|
domain = "git.coolneng.duckdns.org";
|
|
|
|
rootUrl = "https://git.coolneng.duckdns.org";
|
2019-11-16 10:55:10 +01:00
|
|
|
database = {
|
|
|
|
type = "postgres";
|
2021-03-30 10:05:51 +02:00
|
|
|
passwordFile = "/var/keys/gitea";
|
2019-11-16 10:55:10 +01:00
|
|
|
};
|
|
|
|
cookieSecure = true;
|
2019-11-16 17:54:06 +01:00
|
|
|
disableRegistration = true;
|
2019-11-16 10:55:10 +01:00
|
|
|
repositoryRoot = "/vault/git";
|
2019-12-09 06:56:30 +01:00
|
|
|
appName = "Gitea";
|
2020-10-28 00:39:54 +01:00
|
|
|
lfs.enable = true;
|
2020-10-28 00:40:09 +01:00
|
|
|
settings = { ui = { DEFAULT_THEME = "arc-green"; }; };
|
2019-11-16 10:55:10 +01:00
|
|
|
};
|
|
|
|
}
|