From 4e2b2a12be6c9006a072014c9b2b50fca58cd3b3 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Wed, 3 Jul 2024 14:21:30 +0400 Subject: [PATCH] feat(gitea): add an option to select default Forgejo theme --- sp-modules/gitea/module.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sp-modules/gitea/module.nix b/sp-modules/gitea/module.nix index 3a1deb9..8351108 100644 --- a/sp-modules/gitea/module.nix +++ b/sp-modules/gitea/module.nix @@ -43,6 +43,11 @@ in type = lib.types.bool; description = "Require signin to view any page"; }; + defaultTheme = lib.mkOption { + default = "forgejo-auto"; + type = lib.types.enum [ "forgejo-auto" "forgejo-light" "forgejo-dark" "auto" "gitea" "arc-green" ]; + description = "The default theme for the gitea instance"; + } }; config = lib.mkIf cfg.enable { @@ -91,7 +96,7 @@ in ENABLED = false; }; ui = { - DEFAULT_THEME = "forgejo-auto"; + DEFAULT_THEME = cfg.defaultTheme; SHOW_USER_EMAIL = false; }; picture = {