From c7f6564438460222bfc97c4c7a29daa235174ad1 Mon Sep 17 00:00:00 2001 From: tdpeuter Date: Thu, 30 Mar 2023 11:14:02 +0200 Subject: [PATCH] Add firefox module --- nixos/modules/apps/firefox/default.nix | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 nixos/modules/apps/firefox/default.nix diff --git a/nixos/modules/apps/firefox/default.nix b/nixos/modules/apps/firefox/default.nix new file mode 100644 index 0000000..72e17fc --- /dev/null +++ b/nixos/modules/apps/firefox/default.nix @@ -0,0 +1,41 @@ +{ inputs, lib, config, pkgs, ... }: + +{ + home-manager.users.tdpeuter.programs.firefox = { + enable = true; + package = pkgs.firefox.override { + cfg = { + enableTridactylNative = true; + }; + extraPolicies = { + DisableFirefoxStudies = true; + DisablePocket = true; + DisableTelemetry = true; + ExtensionSettings = {}; + OfferToSaveLogins = false; + }; + }; + profiles.tdpeuter = { + search = { + default = "DuckDuckGo"; + force = true; + engines = { + "eBay".metaData.hidden = true; + "Nix Packages" = { + urls = [{ + template = "https://search.nixos.org/packages"; + params = [ + { name = "type"; value = "packages"; } + { name = "query"; value = "{searchTerms}"; } + ]; + }]; + + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@np" ]; + }; + }; + }; + }; + }; +} +