mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-06 16:14:17 +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;
|
type = lib.types.bool;
|
||||||
description = "Require signin to view any page";
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
|
@ -91,7 +96,7 @@ in
|
||||||
ENABLED = false;
|
ENABLED = false;
|
||||||
};
|
};
|
||||||
ui = {
|
ui = {
|
||||||
DEFAULT_THEME = "forgejo-auto";
|
DEFAULT_THEME = cfg.defaultTheme;
|
||||||
SHOW_USER_EMAIL = false;
|
SHOW_USER_EMAIL = false;
|
||||||
};
|
};
|
||||||
picture = {
|
picture = {
|
||||||
|
|
Loading…
Reference in a new issue