zion/modules/devops.nix
coolneng 91d4b240d7
# This is a combination of 2 commits.
# This is the 1st commit message:

Revert "Disable wizard on Gitea"

This reverts commit d8b415ee16.

# This is the commit message #2:

Remove Gitea socket connection to the DB
2019-12-16 20:28:45 +01:00

26 lines
551 B
Nix

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