From 739e74a322712657cbe72a9f29d5cad2dc4c397d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Sun, 19 Nov 2023 00:59:11 +0100 Subject: [PATCH] fix(browsers): fix old nix store paths in firefox extensions The extensions.json nix store paths that won't be updated unless the file is deleted. If it's deleted Firefox will just regenerate it. --- home/modules/firefox/common.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/modules/firefox/common.nix b/home/modules/firefox/common.nix index 2a2c443..5370567 100644 --- a/home/modules/firefox/common.nix +++ b/home/modules/firefox/common.nix @@ -661,6 +661,10 @@ in { in "${extensionsEnvPkg}/share/mozilla/${extensionPath}"; recursive = true; force = true; + onChange = '' + # Includes references to old versions that are shown in UI. + rm -f "${profilesPath}/${profile.path}/extensions.json" + ''; }; })); };