nixos-config/modules/gitea.nix

23 lines
728 B
Nix
Raw Normal View History

2022-05-26 10:55:06 +00:00
{ config, pkgs, lib, ... }:
{
services.gitea = {
enable = true; # Enable Gitea
appName = "git.atlanticaweb.fr"; # Give the site a name
database = {
type = "sqlite3"; # Database type
};
2023-06-22 09:40:16 +00:00
settings.server = {
ROOT_URL = "https://git.atlanticaweb.fr/"; # Root web URL
HTTP_PORT = 3001; # Provided unique port
DOMAIN = "git.atlanticaweb.fr"; # Domain name
};
2022-05-26 10:55:06 +00:00
dump.enable = true;
dump.backupDir = "/srv/backup/gitea";
lfs.enable = true;
2023-06-22 09:40:16 +00:00
settings.service.DISABLEREGISTRATION = true; # comment this line for the first user admin
2022-05-26 10:55:06 +00:00
};
}