zion/modules/devops.nix
2019-12-09 07:23:52 +01:00

31 lines
633 B
Nix

# Software development configuration
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
gitea
git-lfs
];
# Gitea setup with daily backup
services.gitea = {
enable = true;
domain = "coolneng.duckdns.org";
rootUrl = "https://coolneng.duckdns.org/gitea";
database = {
type = "postgres";
passwordFile = "/var/keys/gitea/db";
};
cookieSecure = true;
disableRegistration = true;
repositoryRoot = "/vault/git";
dump.enable = true;
useWizard = true;
extraConfig = ''
[ui]
DEFAULT_THEME = arc-green
'';
appName = "Gitea";
};
}