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;
|
2019-11-23 00:00:47 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
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-09 06:56:30 +01:00
|
|
|
appName = "Gitea";
|
2019-11-16 10:55:10 +01:00
|
|
|
};
|
|
|
|
|
2019-12-25 16:24:10 +01:00
|
|
|
# Restart nginx after startup
|
2019-12-25 16:37:11 +01:00
|
|
|
systemd.services.nginx.partOf = [ "gitea.service" ];
|
2019-12-25 16:24:10 +01:00
|
|
|
|
2019-11-16 10:55:10 +01:00
|
|
|
}
|