module(firefox): Add addon redirector for firefox

This commit is contained in:
ulic-youthlic 2025-06-20 01:47:12 +08:00
parent e50aa81b8c
commit eae222883f
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 33 additions and 5 deletions

View file

@ -33,10 +33,38 @@ in {
};
name = "default";
isDefault = true;
extensions.packages = with outputs.packages."${system}"; [
immersive-translate
tridactyl
];
extensions = {
# settings = {
# "redirector@einaregilsson.com" = {
# settings = {
# redirects = [
# {
# description = "NixOS Wiki";
# exampleUrl = "http://nixos.wiki/wiki/Main_Page";
# exampleResult = "http://wiki.nixos.org/wiki/Main_Page";
# error = null;
# includePattern = "http(s?)://nixos.wiki/wiki/(.*)";
# excludePattern = "";
# patternDesc = "";
# redirectUrl = "http$1://wiki.nixos.org/wiki/$2";
# patternType = "R";
# processMatches = "noProcessing";
# disabled = false;
# grouped = false;
# appliesTo = [
# "main_frame"
# ];
# }
# ];
# };
# };
# };
packages = with outputs.packages."${system}"; [
immersive-translate
tridactyl
redirector
];
};
settings = {
"sidebar.verticalTabs" = true;
"sidebar.visibility" = "expand-on-hover";

View file

@ -30,5 +30,5 @@ in
let
firefox-addons = callPackage "${inputs.nur-rycee}/pkgs/firefox-addons/default.nix" {};
in
lib.genAttrs ["immersive-translate" "tridactyl"] (name: firefox-addons."${name}")
lib.genAttrs ["immersive-translate" "tridactyl" "redirector"] (name: firefox-addons."${name}")
)