forgejo: Configure settings.
parent
46961b2e1f
commit
45573d13ed
|
@ -1,4 +1,4 @@
|
|||
{ system, sops-nix, pkgs, lib, ... }:
|
||||
{ system, pkgs, lib, ... }:
|
||||
let
|
||||
boardwise = builtins.getFlake
|
||||
"github:boardwise-gg/website/db73e3b4f06659fd477be8e76594c01a185f1496";
|
||||
|
|
|
@ -1,7 +1,40 @@
|
|||
{ ... }:
|
||||
{
|
||||
services = {
|
||||
forgejo.enable = true;
|
||||
forgejo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
DEFAULT = {
|
||||
APP_NAME = "Git • Joshua Potter";
|
||||
RUN_MODE = "prod";
|
||||
};
|
||||
database = {
|
||||
# This is already set in /nixos/modules/services/misc/forgejo.nix.
|
||||
# Include here to be explicit. The database file is located at
|
||||
# `/var/lib/forgejo/data`.
|
||||
DB_TYPE = "sqlite3";
|
||||
};
|
||||
repository = {
|
||||
DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true;
|
||||
DISABLE_MIGRATIONS = true;
|
||||
DISABLE_STARS = true;
|
||||
};
|
||||
other = {
|
||||
SHOW_FOOTER_VERSION = false;
|
||||
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false;
|
||||
};
|
||||
server = {
|
||||
LANDING_PAGE = "/explore/repos";
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
};
|
||||
"ui.meta" = {
|
||||
AUTHOR = "Git • Joshua Potter";
|
||||
DESCRIPTION = "Self-hosted git repositories.";
|
||||
};
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."git.jrpotter.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
Loading…
Reference in New Issue