From 13a69318b5444ff3eb84c257e2155d5181acbcb8 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 5 Dec 2024 22:48:15 +0530 Subject: [PATCH] cleanup firefox --- home/programs/firefox/default.nix | 8 ++++---- home/programs/firefox/policies.nix | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/home/programs/firefox/default.nix b/home/programs/firefox/default.nix index 4805ac6..7559379 100644 --- a/home/programs/firefox/default.nix +++ b/home/programs/firefox/default.nix @@ -2,14 +2,14 @@ programs = { firefox = { enable = true; - package = pkgs.firefox.override { - extraPolicies = import ./policies.nix; - extraPrefs = builtins.readFile ./prefs.cfg; - }; + package = pkgs.firefox; + nativeMessagingHosts = with pkgs; [ _1password-gui bitwarden-desktop ]; + policies = import ./policies.nix; profiles.default = { id = 0; name = "Default"; isDefault = true; + extraConfig = builtins.readFile ./prefs.cfg; search = { default = "DuckDuckGo"; engines = { diff --git a/home/programs/firefox/policies.nix b/home/programs/firefox/policies.nix index c08bd02..5716f0d 100644 --- a/home/programs/firefox/policies.nix +++ b/home/programs/firefox/policies.nix @@ -35,6 +35,7 @@ in "{3c078156-979c-498b-8990-85f7987dd929}" = install "https://addons.mozilla.org/firefox/downloads/latest/sidebery/latest.xpi"; "{b743f56d-1cc1-4048-8ba6-f9c2ab7aa54d}" = install "https://addons.mozilla.org/firefox/downloads/latest/dracula-dark-colorscheme/latest.xpi"; "{d634138d-c276-4fc8-924b-40a0ea21d284}" = install "https://addons.mozilla.org/firefox/downloads/latest/1password-x-password-manager/latest.xpi"; + "{446900e4-71c2-419f-a6a7-df9c091e268b}" = install "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi"; }; FirefoxHome = { Search = true;