remove custom theme
This commit is contained in:
parent
2a49b7afd8
commit
6b24432c10
|
@ -22,14 +22,6 @@ in
|
||||||
default = "";
|
default = "";
|
||||||
description = "The name (id) of the openId client to use exclusively.";
|
description = "The name (id) of the openId client to use exclusively.";
|
||||||
};
|
};
|
||||||
customPackage = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.fetchgit {
|
|
||||||
url = "https://git.mineau.eu/histausse/gitea_custom";
|
|
||||||
sha256 = "0r1kjkn0mkfyp2lb8j59frh1vnd1m54swpqwiasvg77r04ibfmn5";
|
|
||||||
};
|
|
||||||
description= "The package for custom configs like theme.";
|
|
||||||
};
|
|
||||||
dbPasswordFile = mkOption {
|
dbPasswordFile = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "/etc/forgejo_db_pwd";
|
default = "/etc/forgejo_db_pwd";
|
||||||
|
@ -87,13 +79,9 @@ in
|
||||||
forgejo
|
forgejo
|
||||||
];
|
];
|
||||||
systemd.services.forgejo.environment.FORGEJO_CUSTOM = "${config.services.forgejo.stateDir}/custom";
|
systemd.services.forgejo.environment.FORGEJO_CUSTOM = "${config.services.forgejo.stateDir}/custom";
|
||||||
systemd.services.forgejo.preStart = lib.mkAfter ''
|
|
||||||
find ${config.services.forgejo.stateDir}/ -type d -exec chmod u+w {} \;
|
|
||||||
cp -f -s -r ${cfg.customPackage}/* ${config.services.forgejo.stateDir}/custom/
|
|
||||||
'';
|
|
||||||
services.forgejo.settings = {
|
services.forgejo.settings = {
|
||||||
ui = {
|
ui = {
|
||||||
THEMES = "forgejo-auto,forgejo-light,forgejo-dark,auto,gitea,arc-green,plex,aquamarine,dark,dracula,hotline,organizr,space-gray,hotpink,onedark,overseerr,nord";
|
THEMES = "forgejo-auto,forgejo-light,forgejo-dark,auto,gitea,arc-green";
|
||||||
DEFAULT_THEME = "forgejo-auto";
|
DEFAULT_THEME = "forgejo-auto";
|
||||||
};
|
};
|
||||||
"ui.meta" = {
|
"ui.meta" = {
|
||||||
|
|
Loading…
Reference in a new issue