From d9a40ec66013b41a28c208b069ac69c35ebebc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Mon, 17 Apr 2023 22:37:20 -0300 Subject: [PATCH] Revert "firefox: move extensions to nixExtensions" This reverts commit 783790a2e9759aff011ab074de109d008192a3dc. --- user/firefox.nix | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/user/firefox.nix b/user/firefox.nix index 7bb2c80..b095f92 100644 --- a/user/firefox.nix +++ b/user/firefox.nix @@ -4,22 +4,15 @@ in { config = { programs.firefox = { enable = true; - # esr enables you to install unsigned extensions - package = pkgs.wrapFirefox pkgs.firefox-esr-unwrapped { - nixExtensions = with pkgs.nur.repos.rycee.firefox-addons; - let - extensions_name_src = { - darkreader = darkreader.src; - 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; - }; + package = pkgs.firefox; + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + darkreader + duckduckgo-privacy-essentials + sponsorblock + tree-style-tab + ublock-origin + ublock-origin + ]; profiles = { main = { isDefault = true;