firefox: move extensions to nixExtensions
This commit is contained in:
parent
5a819bfd40
commit
783790a2e9
|
@ -4,14 +4,21 @@ in {
|
||||||
config = {
|
config = {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox;
|
# esr enables you to install unsigned extensions
|
||||||
# extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
package = pkgs.wrapFirefox pkgs.firefox-esr-unwrapped {
|
||||||
# darkreader
|
nixExtensions = with pkgs.nur.repos.rycee.firefox-addons;
|
||||||
# ublock-origin
|
let
|
||||||
# tree-style-tab
|
extensions_name_src = {
|
||||||
# sponsorblock
|
darkreader = darkreader.src;
|
||||||
# duckduckgo-privacy-essentials
|
ublock-origin = ublock-origin.src;
|
||||||
# ];
|
tree-style-tab = tree-style-tab.src;
|
||||||
|
sponsorblock = sponsorblock.src;
|
||||||
|
duckduckgo-privacy-essentials = duckduckgo-privacy-essentials.src;
|
||||||
|
};
|
||||||
|
make_extension = name: src:
|
||||||
|
((pkgs.fetchFirefoxAddon { inherit name src; }));
|
||||||
|
in lib.mapAttrsToList make_extension extensions_name_src;
|
||||||
|
};
|
||||||
profiles = {
|
profiles = {
|
||||||
main = {
|
main = {
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
|
|
Loading…
Reference in a new issue