essential: no longer set the `LOCALE_ARCHIVE` envvar
[julm/julm-nix.git] / home-manager / profiles / firefox.nix
index 88561987be1470a75b95c02b422d63af0526efc4..21b83c3a573e23e4023c42eb82f1b2f997c0b0c1 100644 (file)
@@ -1,20 +1,22 @@
 { config, pkgs, lib, ... }:
 {
-home.packages = lib.mkIf config.programs.firefox.enable [
-  #pkgs.tor-browser-bundle-bin
-];
-programs.firefox = {
-  enable = lib.mkDefault true;
-  /*
-  extensions =
-    with pkgs.nur.repos.rycee.firefox-addons; [
+  home.packages = lib.mkIf config.programs.firefox.enable [
+    #pkgs.tor-browser-bundle-bin
+  ];
+  programs.browserpass.enable = true;
+  programs.browserpass.browsers = [ "firefox" ];
+  programs.firefox = {
+    enable = lib.mkDefault true;
+    /*
+      extensions =
+      with pkgs.nur.repos.rycee.firefox-addons; [
       https-everywhere
       privacy-badger
-    ];
-  */
-  package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
-    /*
-    nixExtensions = [
+      ];
+    */
+    package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
+      /*
+        nixExtensions = [
       (pkgs.fetchFirefoxAddon {
         name = "ublock";
         url = "https://addons.mozilla.org/firefox/downloads/file/3679754/ublock_origin-latest-an+fx.xpi";
@@ -25,27 +27,27 @@ programs.firefox = {
         url = "https://addons.mozilla.org/firefox/downloads/file/1671300/decentraleyes-latest-an+fx.xpi";
         sha256 = "0000000000000000000000000000000000000000000000000000";
       })
-    ];
-    */
+        ];
+      */
 
-    /* about:policies#documentation */
-    extraPolicies = {
-      CaptivePortal = false;
-      DNSOverHTTPS = { Enabled = false; Locked = true; };
-      DisableAppUpdate = true;
-      DisableFirefoxAccounts = true;
-      DisableFirefoxStudies = true;
-      DisablePocket = true;
-      DisableTelemetry = true;
-      DontCheckDefaultBrowser = true;
-      FirefoxHome = { Pocket = false; Snippets = false; };
-      NetworkPrediction = false;
-      PromptForDownloadLocation = true;
-      SearchEngines = { PreventInstalls = true; };
-      SearchSuggestEnabled = false;
-      UserMessaging = { ExtensionRecommendations = false; SkipOnboarding = true; };
+      /* about:policies#documentation */
+      extraPolicies = {
+        CaptivePortal = false;
+        DNSOverHTTPS = { Enabled = false; Locked = true; };
+        DisableAppUpdate = true;
+        DisableFirefoxAccounts = true;
+        DisableFirefoxStudies = true;
+        DisablePocket = true;
+        DisableTelemetry = true;
+        DontCheckDefaultBrowser = true;
+        FirefoxHome = { Pocket = false; Snippets = false; };
+        NetworkPrediction = false;
+        PromptForDownloadLocation = true;
+        SearchEngines = { PreventInstalls = true; };
+        SearchSuggestEnabled = false;
+        UserMessaging = { ExtensionRecommendations = false; SkipOnboarding = true; };
+      };
+      #extraNativeMessagingHosts = [ pkgs.passff-host ];
     };
-    extraNativeMessagingHosts = [ pkgs.passff-host ];
   };
-};
 }