remove custom theme

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2024-07-11 23:50:34 +02:00
parent 2a49b7afd8
commit 6b24432c10
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -22,14 +22,6 @@ in
default = "";
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 {
type = types.str;
default = "/etc/forgejo_db_pwd";
@ -87,13 +79,9 @@ in
forgejo
];
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 = {
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";
};
"ui.meta" = {