zion/modules/devops.nix

31 lines
692 B
Nix
Raw Normal View History

2019-11-16 10:55:10 +01:00
# Software development configuration
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
gitea
];
# Gitea setup with daily backup
services.gitea = {
enable = true;
domain = "coolneng.duckdns.org";
2019-11-25 15:19:01 +01:00
rootUrl = "https://coolneng.duckdns.org/gitea";
2019-11-16 10:55:10 +01:00
database = {
type = "postgres";
passwordFile = "/var/keys/gitea/db";
2019-12-15 22:37:37 +01:00
socket = "/run/postgresql/.s.PGSQL.5432";
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";
dump.enable = true;
2019-12-15 21:37:19 +01:00
useWizard = false;
appName = "Gitea";
2019-12-15 21:37:19 +01:00
extraConfig = ''
LFS_START_SERVER = true
LFS_HTTP_AUTH_EXPIRY = 60m
'';
2019-11-16 10:55:10 +01:00
};
}