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.
This commit is contained in:
Felix Schröter 2023-11-19 00:59:11 +01:00
parent 20a845faaa
commit 739e74a322
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -661,6 +661,10 @@ in {
in "${extensionsEnvPkg}/share/mozilla/${extensionPath}"; in "${extensionsEnvPkg}/share/mozilla/${extensionPath}";
recursive = true; recursive = true;
force = true; force = true;
onChange = ''
# Includes references to old versions that are shown in UI.
rm -f "${profilesPath}/${profile.path}/extensions.json"
'';
}; };
})); }));
}; };