24 lines
540 B
Nix
24 lines
540 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
|
|
};
|
|
# Secret for DB password set in secrets.nix
|
|
};
|
|
|
|
services.postgresql = {
|
|
enable = true;
|
|
package = pkgs.postgresql_15;
|
|
};
|
|
}
|