2019-11-16 10:55:10 +01:00
|
|
|
# Software development configuration
|
2020-08-24 15:07:55 +02:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2020-03-29 06:21:19 +02:00
|
|
|
|
2020-08-24 15:07:55 +02:00
|
|
|
environment.systemPackages = with pkgs; [ gitea ];
|
2020-03-29 06:21:19 +02:00
|
|
|
|
2019-11-16 10:55:10 +01:00
|
|
|
# Gitea setup with daily backup
|
|
|
|
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";
|
|
|
|
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";
|
2019-12-09 06:56:30 +01:00
|
|
|
appName = "Gitea";
|
2020-08-24 15:07:55 +02:00
|
|
|
dump = { enable = false; };
|
2019-11-16 10:55:10 +01:00
|
|
|
};
|
|
|
|
}
|