mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-04 23:24:22 +00:00
feat(gitea): add an option to select default Forgejo theme
This commit is contained in:
parent
eccaaedb50
commit
4e2b2a12be
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue