35 lines
664 B
Nix
35 lines
664 B
Nix
{config, ...}: {
|
|
services = {
|
|
# Gitea
|
|
gitea = {
|
|
enable = true;
|
|
database = {
|
|
type = "sqlite3";
|
|
passwordFile = "${config.age.secrets.gitea-db.path}";
|
|
};
|
|
settings = {
|
|
server = {
|
|
DOMAIN = "git.nicknase27.com";
|
|
ROOT_URL = "https://git.nicknase27.com";
|
|
};
|
|
service = {
|
|
DISABLE_REGISTRATION = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
age.secrets = {
|
|
gitea-db = {
|
|
file = ../../secrets/gitea-db.age;
|
|
path = "/run/secrets/gitea-db";
|
|
owner = "gitea";
|
|
group = "gitea";
|
|
};
|
|
};
|
|
|
|
networking.firewall = {
|
|
allowedTCPPorts = [3000];
|
|
};
|
|
}
|