home: firefox: add ff2mpv
This allows watching videos using mpv via a simple button.
This commit is contained in:
parent
15abb291ef
commit
e80485018c
|
@ -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 = [
|
||||
|
|
|
@ -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
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue