firefox: define the fx_cast addon

This commit is contained in:
Colin 2023-12-13 20:51:57 +00:00
parent 4eb79a4a5c
commit 15622251ef
3 changed files with 23 additions and 1 deletions

View File

@ -55,7 +55,11 @@ let
# it can be further customized via ~/.librewolf/librewolf.overrides.cfg
inherit (cfg.browser) extraPrefsFiles libName;
extraNativeMessagingHosts = optional cfg.addons.browserpass-extension.enable pkgs.browserpass;
extraNativeMessagingHosts = lib.optionals cfg.addons.browserpass-extension.enable [
pkgs.browserpass
] ++ lib.optionals cfg.addons.fxCast.enable [
pkgs.fx-cast-bridge
];
# extraNativeMessagingHosts = [ pkgs.gopass-native-messaging-host ];
nixExtensions = concatMap (ext: optional ext.enable ext.package) (attrValues cfg.addons);
@ -157,6 +161,12 @@ in
default = {};
};
sane.programs.firefox.config.addons = {
fxCast = {
# add a menu to cast to chromecast devices.
# supposedly, anyway. it doesn't seem to work for me.
package = pkgs.firefox-extensions.fx_cast;
enable = lib.mkDefault false;
};
browserpass-extension = {
package = pkgs.firefox-extensions.browserpass-extension;
enable = lib.mkDefault true;

View File

@ -32,6 +32,11 @@ in [
hash = "sha256-AkxtrCJrf0wpTdty4SOIWBrWwqfG7rBI4ON38BjDi6s=";
})
# (fetchpatch' {
# title = "fx-cast-bridge: Pin nodejs to version 18";
# prUrl = "https://github.com/NixOS/nixpkgs/pull/273768";
# hash = "sha256-THf+O5THf0URY6bsq2/bVo1P2CvUq7opxNtl548yTak=";
# })
# (fetchpatch' {
# # 2023/12/12: needs rebasing
# title = "gnome-feeds: 0.16.2 -> 2.2.0";
# prUrl = "https://github.com/NixOS/nixpkgs/pull/217060";

View File

@ -123,6 +123,13 @@ in (lib.makeScope newScope (self: with self; {
version = "11.7.0";
hash = "sha256-Xb+hFxFTfGE0IKp87JKLUoaLbgjwhnWUYwTNlYj1LCM=";
};
fx_cast = fetchVersionedAddon rec {
extid = "fx_cast@matt.tf";
pname = "fx_cast";
url = "https://github.com/hensm/fx_cast/releases/download/v${version}/fx_cast-${version}.xpi";
version = "0.3.1";
hash = "sha256-zaYnUJpJkRAPSCpM3S20PjMS4aeBtQGhXB2wgdlFkSQ=";
};
i2p-in-private-browsing = fetchVersionedAddon rec {
extid = "i2ppb@eyedeekay.github.io";
pname = "i2p-in-private-browsing";