From 837ac95f926f779b7315015af625cb75dbfc41c9 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Wed, 17 Jan 2024 05:58:13 +0000 Subject: [PATCH] firefox: configure with module --- sets/1password.nix | 8 ++++++++ sets/firefox.nix | 30 ++++++++++++++++++++++++++++++ sets/packages.nix | 3 --- sets/workstation.nix | 3 ++- 4 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 sets/firefox.nix diff --git a/sets/1password.nix b/sets/1password.nix index 9541c56..6a29bfe 100644 --- a/sets/1password.nix +++ b/sets/1password.nix @@ -8,5 +8,13 @@ }; services.gnome.gnome-keyring.enable = true; programs.seahorse.enable = true; + + programs.firefox.policies.ExtensionSettings = { + "{25fc87fa-4d31-4fee-b5c1-c32a7844c063}" = { + installation_mode = "normal_installed"; + install_url = + "https://c.1password.com/dist/1P/b5x/firefox/beta/latest.xpi"; + }; + }; } diff --git a/sets/firefox.nix b/sets/firefox.nix new file mode 100644 index 0000000..3e701b1 --- /dev/null +++ b/sets/firefox.nix @@ -0,0 +1,30 @@ +{ ... }: { + programs.firefox = { + enable = true; + languagePacks = [ "en-US" "de" ]; + preferences = { + "app.shield.outputstudies.enabled" = false; + "browser.urlbar.switchTabs.adoptIntoActiveWindow" = true; + "browser.newtabpage.activity-stream.feeds.topsites" = false; + "browser.newtabpage.activity-stream.feeds.section.topstories" = false; + }; + policies.SearchEngines.Default = "duckduckgo"; + policies.ExtensionSettings = { + "uBlock0@raymondhill.net" = { + installation_mode = "normal_installed"; + install_url = + "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; + }; + "@testpilot-containers" = { + installation_mode = "normal_installed"; + install_url = + "https://addons.mozilla.org/firefox/downloads/latest/multi-account-containers/latest.xpi"; + }; + "sponsorBlocker@ajay.app" = { + installation_mode = "normal_installed"; + install_url = + "https://addons.mozilla.org/firefox/downloads/latest/sponsorblock/latest.xpi"; + }; + }; + }; +} diff --git a/sets/packages.nix b/sets/packages.nix index 0260fdd..4e6d54c 100644 --- a/sets/packages.nix +++ b/sets/packages.nix @@ -101,9 +101,6 @@ qalculate-gtk libqalculate - # Web - firefox - # Gnome configuration gnome3.adwaita-icon-theme gsettings-desktop-schemas diff --git a/sets/workstation.nix b/sets/workstation.nix index 019fda9..73e7b92 100644 --- a/sets/workstation.nix +++ b/sets/workstation.nix @@ -5,12 +5,13 @@ ../home ./1password.nix ./base.nix + ./firefox.nix ./nix-index.nix + ./nixvim.nix ./packages.nix ./pipewire.nix ./swap.nix ./sway.nix - ./nixvim.nix inputs.private.nixosModules.taskwarrior ];