firefox: comment out a few extensions i never use

This commit is contained in:
2024-10-02 16:58:59 +00:00
parent b7f3267102
commit a668da3c2e

View File

@@ -5,17 +5,17 @@ in
{ {
sane.programs.firefox = { sane.programs.firefox = {
config.addons = { config.addons = {
fxCast = { # fxCast = {
# add a menu to cast to chromecast devices, but it doesn't seem to work very well. # # add a menu to cast to chromecast devices, but it doesn't seem to work very well.
# right click (or shift+rc) a video, then select "cast". # # right click (or shift+rc) a video, then select "cast".
# - asciinema.org: icon appears, but glitches when clicked. # # - asciinema.org: icon appears, but glitches when clicked.
# - youtube.com: no icon appears, even when site is whitelisted. # # - youtube.com: no icon appears, even when site is whitelisted.
# future: maybe better to have browser open all videos in mpv, and then use mpv for casting. # # future: maybe better to have browser open all videos in mpv, and then use mpv for casting.
# see e.g. `ff2mpv`, `open-in-mpv` (both are packaged in nixpkgs) # # see e.g. `ff2mpv`, `open-in-mpv` (both are packaged in nixpkgs)
package = pkgs.firefox-extensions.fx_cast; # package = pkgs.firefox-extensions.fx_cast;
nativeMessagingHosts = [ pkgs.fx-cast-bridge ]; # nativeMessagingHosts = [ pkgs.fx-cast-bridge ];
enable = lib.mkDefault false; # enable = lib.mkDefault false;
}; # };
browserpass-extension = { browserpass-extension = {
package = pkgs.firefox-extensions.browserpass-extension; package = pkgs.firefox-extensions.browserpass-extension;
nativeMessagingHosts = [ pkgs.browserpass ]; nativeMessagingHosts = [ pkgs.browserpass ];
@@ -25,10 +25,10 @@ in
package = pkgs.firefox-extensions.bypass-paywalls-clean; package = pkgs.firefox-extensions.bypass-paywalls-clean;
enable = lib.mkDefault true; enable = lib.mkDefault true;
}; };
ctrl-shift-c-should-copy = { # ctrl-shift-c-should-copy = {
package = pkgs.firefox-extensions.ctrl-shift-c-should-copy; # package = pkgs.firefox-extensions.ctrl-shift-c-should-copy;
enable = lib.mkDefault false; # prefer patching firefox source code, so it works in more places # enable = lib.mkDefault false; # prefer patching firefox source code, so it works in more places
}; # };
ether-metamask = { ether-metamask = {
package = pkgs.firefox-extensions.ether-metamask; package = pkgs.firefox-extensions.ether-metamask;
enable = lib.mkDefault false; # until i can disable the first-run notification enable = lib.mkDefault false; # until i can disable the first-run notification
@@ -46,11 +46,11 @@ in
package = pkgs.firefox-extensions.i-still-dont-care-about-cookies; package = pkgs.firefox-extensions.i-still-dont-care-about-cookies;
enable = lib.mkDefault false; #< obsoleted by uBlock Origin annoyances/cookies lists enable = lib.mkDefault false; #< obsoleted by uBlock Origin annoyances/cookies lists
}; };
open-in-mpv = { # open-in-mpv = {
# test: `open-in-mpv 'mpv:///open?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ'` # # test: `open-in-mpv 'mpv:///open?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ'`
package = pkgs.firefox-extensions.open-in-mpv; # package = pkgs.firefox-extensions.open-in-mpv;
enable = lib.mkDefault false; # enable = lib.mkDefault false;
}; # };
passff = { passff = {
package = pkgs.firefox-extensions.passff; package = pkgs.firefox-extensions.passff;
nativeMessagingHosts = [ pkgs.passff-host ]; nativeMessagingHosts = [ pkgs.passff-host ];
@@ -76,9 +76,10 @@ in
suggestedPrograms = lib.optionals cfg.addons.firefox-xdg-open.enable [ suggestedPrograms = lib.optionals cfg.addons.firefox-xdg-open.enable [
"firefox-xdg-open" "firefox-xdg-open"
] ++ lib.optionals cfg.addons.open-in-mpv.enable [
"open-in-mpv"
]; ];
# ++ lib.optionals cfg.addons.open-in-mpv.enable [
# "open-in-mpv"
# ];
sandbox.extraHomePaths = lib.optionals cfg.addons.browserpass-extension.enable [ sandbox.extraHomePaths = lib.optionals cfg.addons.browserpass-extension.enable [
# browserpass needs these paths: # browserpass needs these paths: