home: firefox: add ff2mpv

This allows watching videos using mpv via a simple button.
This commit is contained in:
Bruno BELANYI 2021-05-15 21:28:10 +02:00
parent 15abb291ef
commit e80485018c
2 changed files with 19 additions and 2 deletions

View file

@ -11,6 +11,15 @@
default = config.my.home.firefox.enable;
};
};
ff2mpv = {
enable = mkOption {
type = types.bool;
description = "ff2mpv configuration";
example = false;
default = config.my.home.mpv.enable;
};
};
};
imports = [

View file

@ -10,6 +10,11 @@ in
cfg = {
enableTridactylNative = cfg.tridactyl.enable;
};
extraNativeMessagingHosts = with pkgs; ([ ]
# Watch videos using mpv
++ lib.optional cfg.ff2mpv.enable ambroisie.ff2mpv-go
);
};
profiles = {
@ -35,13 +40,16 @@ in
};
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
extensions = with pkgs.nur.repos.rycee.firefox-addons; ([
bitwarden
form-history-control
https-everywhere
i-dont-care-about-cookies
reddit-enhancement-suite
ublock-origin
] ++ lib.optional (cfg.tridactyl.enable) tridactyl;
]
++ lib.optional (cfg.tridactyl.enable) tridactyl
++ lib.optional (cfg.ff2mpv.enable) ff2mpv
);
};
}