Commit 273df27
Changed files (2)
home
linux
gui
firefox
addons
home/linux/gui/firefox/addons/default.nix
@@ -0,0 +1,26 @@
+{ buildFirefoxXpiAddon, fetchurl, lib, stdenv }:
+ {
+ "lulu-translator" = buildFirefoxXpiAddon {
+ pname = "lulu-translator";
+ version = "25.7.0";
+ addonId = "{20c4c749-556c-4659-8827-16dfaf0601f9}";
+ url = "https://addons.mozilla.org/firefox/downloads/file/4539524/2818091-25.7.0.xpi";
+ sha256 = "a87c7f30dde5125e48cc848d7af730dcabe38e455ffe254799591d79b514d211";
+ meta = with lib;
+ {
+ description = "LuLu Translate, the world-leading cross-platform translation software, supports translation by selecting words.";
+ mozPermissions = [
+ "<all_urls>"
+ "webRequest"
+ "storage"
+ "activeTab"
+ "contextMenus"
+ "scripting"
+ "cookies"
+ "file:///*"
+ "*://*/*"
+ ];
+ platforms = platforms.all;
+ };
+ };
+ }
\ No newline at end of file
home/linux/gui/firefox/default.nix
@@ -36,18 +36,24 @@
baidu.metaData.hidden = true;
};
};
- extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
- ublock-origin
- bitwarden
- tampermonkey
- rsshub-radar
- auto-tab-discard
- aria2-integration
- immersive-translate
- firefox-color
- plasma-integration
- aw-watcher-web
- ];
+ extensions.packages = let
+ my-addons = import ./addons (with pkgs; {
+ inherit lib fetchurl stdenv;
+ buildFirefoxXpiAddon = pkgs.nur.repos.rycee.firefox-addons.buildFirefoxXpiAddon;
+ });
+ in
+ with pkgs.nur.repos.rycee.firefox-addons; [
+ ublock-origin
+ bitwarden
+ tampermonkey
+ rsshub-radar
+ auto-tab-discard
+ aria2-integration
+ firefox-color
+ plasma-integration
+ aw-watcher-web
+ my-addons.lulu-translator
+ ];
settings = {
# No First Run
"app.normandy.first_run" = false;