TZ: set a default
[julm/julm-nix.git] / home-manager / profiles / firefox.nix
index a3af16cfc764a813988f73bb2396bfa44f236ef2..2f514b6eb611affd6815dc2b6758ea3d29519139 100644 (file)
@@ -1,20 +1,21 @@
 { 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.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,26 +26,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 ];
     };
   };
-};
 }