Remove custom theme
parent
8df398cd61
commit
9a668df717
|
|
@ -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";
|
||||
|
|
@ -86,14 +78,9 @@ in
|
|||
environment.systemPackages = with pkgs; [
|
||||
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" = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue