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-22 23:14:39 +01:00
|
|
|
domain = "https://coolneng.duckdns.org";
|
2019-11-16 10:55:10 +01:00
|
|
|
rootUrl = "https://coolneng.duckdns.org/gitea";
|
|
|
|
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-11-16 17:54:06 +01:00
|
|
|
useWizard = true;
|
2019-11-16 10:55:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|