21 lines
509 B
Nix
21 lines
509 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.forgejo = {
|
|
enable = true;
|
|
database.type = "postgres";
|
|
# Enable support for Large File Storage
|
|
lfs.enable = true;
|
|
settings = {
|
|
server = {
|
|
DOMAIN = "git.extremist.software";
|
|
ROOT_URL = "https://git.extremist.software/";
|
|
HTTP_PORT = 3000;
|
|
};
|
|
# You can configure SMTP here using secrets if needed
|
|
};
|
|
database.passwordFile = config.age.secrets.forgejo-db.path;
|
|
};
|
|
|
|
services.postgresql.enable = true;
|
|
}
|