From 193820e84f6bb3124987d612a7de8709667e7c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 6 Jan 2023 21:08:58 +0100 Subject: [PATCH] Format --- hosts/gitea/default.nix | 44 +++++++++++------------------------------ 1 file changed, 12 insertions(+), 32 deletions(-) diff --git a/hosts/gitea/default.nix b/hosts/gitea/default.nix index 42b36d24..a3dd0ace 100644 --- a/hosts/gitea/default.nix +++ b/hosts/gitea/default.nix @@ -17,17 +17,15 @@ domain = "gitea.c3d2.de"; rootUrl = "https://${domain}/"; - database = { - type = "postgres"; - }; + database.type = "postgres"; repositoryRoot = "/var/lib/gitea/repositories"; lfs.enable = true; dump = { - ## Is a nice feature once we have a dedicated backup storage. - ## For now it is disabled, since it delays `nixos-rebuild switch`. + # Is a nice feature once we have a dedicated backup storage. + # For now it is disabled, since it delays `nixos-rebuild switch`. enable = false; backupDir = "/var/lib/gitea/dump"; }; @@ -38,31 +36,17 @@ ENABLED = true; SCHEME = "https"; }; - cron = { - ENABLED = true; - }; - "cron.delete_generated_repository_avatars" = { - ENABLED = true; - }; - "cron.delete_old_actions" = { - ENABLED = true; - }; - "cron.delete_old_system_notices" = { - ENABLED = true; - }; - "cron.repo_health_check" = { - TIMEOUT = "300s"; - }; + cron.ENABLED = true; + "cron.delete_generated_repository_avatars".ENABLED = true; + "cron.delete_old_actions".ENABLED = true; + "cron.delete_old_system_notices".ENABLED = true; + "cron.repo_health_check".TIMEOUT = "300s"; "cron.resync_all_sshkeys" = { ENABLED = true; RUN_AT_START = true; }; - database = { - LOG_SQL = false; - }; - indexer = { - REPO_INDEXER_ENABLED = true; - }; + database.LOG_SQL = false; + indexer.REPO_INDEXER_ENABLED = true; log = { LEVEL = "Info"; DISABLE_ROUTER_LOG = true; @@ -74,9 +58,7 @@ SENDMAIL_PATH = "/run/wrappers/bin/sendmail"; SENDMAIL_ARGS = "--"; }; - other = { - SHOW_FOOTER_VERSION = false; - }; + other.SHOW_FOOTER_VERSION = false; picture = { # this also disables libravatar DISABLE_GRAVATAR = false; @@ -104,9 +86,7 @@ ECDSA = -1; RSA = 4095; }; - time = { - DEFAULT_UI_LOCATION = config.time.timeZone; - }; + time.DEFAULT_UI_LOCATION = config.time.timeZone; ui = { DEFAULT_THEME = "arc-green"; EXPLORE_PAGING_NUM = 25;