feat(gitea): add an option to select default Forgejo theme

This commit is contained in:
Inex Code 2024-07-03 14:21:30 +04:00
parent eccaaedb50
commit 4e2b2a12be

View file

@ -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 = {