diff options
author | sefidel <contact@sefidel.net> | 2023-12-21 19:33:36 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-12-21 19:42:46 +0900 |
commit | 20eae0649d89de6f4f6dd386b3353fd351865409 (patch) | |
tree | a58a4c01a61017e87e57beea120a8033d783c399 /home/profiles | |
parent | 852afb1f61f2e9a473ce5b1b323e5bb3809dec12 (diff) | |
download | nixrc-20eae0649d89de6f4f6dd386b3353fd351865409.tar.gz nixrc-20eae0649d89de6f4f6dd386b3353fd351865409.zip |
feat(home/browsing): manage firefox
Diffstat (limited to 'home/profiles')
-rw-r--r-- | home/profiles/browsing/default.nix | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/home/profiles/browsing/default.nix b/home/profiles/browsing/default.nix index 0c16ca6..5c04438 100644 --- a/home/profiles/browsing/default.nix +++ b/home/profiles/browsing/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, inputs, lib, pkgs, ... }: let cfg = config.profiles.browsing; @@ -19,7 +19,7 @@ in }; config = lib.mkIf cfg.enable { - home.packages = with pkgs; [ firefox lynx ]; + home.packages = with pkgs; [ lynx ]; sops.secrets.kagi-query = { }; sops.secrets.kagi-session = { }; @@ -65,6 +65,33 @@ in # ''; }; + programs.firefox = { + enable = true; + package = pkgs.firefox.override { + extraPolicies = { + # CaptivePortal = false; + DisableFirefoxStudies = true; + DisableTelemetry = true; + DontCheckDefaultBrowser = true; + OfferToSaveLogins = false; + OfferToSaveLoginsDefault = false; + UserMessaging = { + ExtensionRecommendations = false; + SkipOnboarding = true; + }; + }; + }; + + profiles.default = { + id = 0; + + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + bitwarden + kagi-search + ]; + }; + }; + xdg.mimeApps = lib.mkIf pkgs.stdenv.isLinux { enable = true; defaultApplications = { |