zion/modules/devops.nix

25 lines
646 B
Nix
Raw Normal View History

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";
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";
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 = {
ui.DEFAULT_THEME = "arc-green";
session.COOKIE_SECURE = true;
service.DISABLE_REGISTRATION = true;
server.DISABLE_SSH = true;
};
2019-11-16 10:55:10 +01:00
};
}