Set up Gitea
This commit is contained in:
23
modules/devops.nix
Normal file
23
modules/devops.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user