Set up Gitea

This commit is contained in:
2019-11-16 10:55:10 +01:00
parent 4a2f5b2e32
commit f103b449e9
5 changed files with 51 additions and 3 deletions

23
modules/devops.nix Normal file
View File

@@ -0,0 +1,23 @@
# Software development configuration
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
gitea
];
# Gitea setup with daily backup
services.gitea = {
enable = true;
domain = "coolneng.duckdns.org/gitea";
rootUrl = "https://coolneng.duckdns.org/gitea";
database = {
type = "postgres";
passwordFile = "/var/keys/gitea/db";
};
cookieSecure = true;
#disableRegistration = true;
repositoryRoot = "/vault/git";
dump.enable = true;
};
}