From 9a668df71710785afea20104b93041e597b75c4b Mon Sep 17 00:00:00 2001 From: histausse Date: Thu, 11 Jul 2024 23:52:23 +0200 Subject: [PATCH] Remove custom theme --- pp-forgejo.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/pp-forgejo.nix b/pp-forgejo.nix index 1cd3211..bb32efe 100644 --- a/pp-forgejo.nix +++ b/pp-forgejo.nix @@ -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" = {