firefox: ship open-in-mpv extension
This commit is contained in:
@@ -187,6 +187,10 @@ in
|
|||||||
package = pkgs.firefox-extensions.i2p-in-private-browsing;
|
package = pkgs.firefox-extensions.i2p-in-private-browsing;
|
||||||
enable = lib.mkDefault config.services.i2p.enable;
|
enable = lib.mkDefault config.services.i2p.enable;
|
||||||
};
|
};
|
||||||
|
open-in-mpv = {
|
||||||
|
package = pkgs.firefox-extensions.open-in-mpv;
|
||||||
|
enable = lib.mkDefault config.sane.programs.open-in-mpv.enabled;
|
||||||
|
};
|
||||||
sidebery = {
|
sidebery = {
|
||||||
package = pkgs.firefox-extensions.sidebery;
|
package = pkgs.firefox-extensions.sidebery;
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
@@ -209,6 +213,10 @@ in
|
|||||||
sane.programs.firefox = {
|
sane.programs.firefox = {
|
||||||
inherit package;
|
inherit package;
|
||||||
|
|
||||||
|
suggestedPrograms = [
|
||||||
|
"open-in-mpv"
|
||||||
|
];
|
||||||
|
|
||||||
mime.associations = let
|
mime.associations = let
|
||||||
inherit (cfg.browser) desktop;
|
inherit (cfg.browser) desktop;
|
||||||
in {
|
in {
|
||||||
|
@@ -137,6 +137,17 @@ in (lib.makeScope newScope (self: with self; {
|
|||||||
version = "1.47";
|
version = "1.47";
|
||||||
hash = "sha256-LnR5z3fqNJywlr/khFdV4qloKGQhbxNZQvWCEgz97DU=";
|
hash = "sha256-LnR5z3fqNJywlr/khFdV4qloKGQhbxNZQvWCEgz97DU=";
|
||||||
};
|
};
|
||||||
|
open-in-mpv = fetchVersionedAddon rec {
|
||||||
|
# usage:
|
||||||
|
# - click the "puzzle" icon in top-right of browser -> open in mpv
|
||||||
|
# - or, (shift)right-click a video and select "open in mpv"
|
||||||
|
# - but note that this option does not work for Youtube videos
|
||||||
|
extid = "{d66c8515-1e0d-408f-82ee-2682f2362726}";
|
||||||
|
pname = "open-in-mpv";
|
||||||
|
url = "https://github.com/Baldomo/open-in-mpv/releases/download/v${version}/firefox.xpi";
|
||||||
|
version = "2.1.0";
|
||||||
|
hash = "sha256-jRP0hvEyScGnQ2K5EFX+ggtu6B0h9Y3fJxYYnI8cMbc=";
|
||||||
|
};
|
||||||
sidebery = fetchVersionedAddon rec {
|
sidebery = fetchVersionedAddon rec {
|
||||||
extid = "{3c078156-979c-498b-8990-85f7987dd929}";
|
extid = "{3c078156-979c-498b-8990-85f7987dd929}";
|
||||||
pname = "sidebery";
|
pname = "sidebery";
|
||||||
|
Reference in New Issue
Block a user