summary refs log tree commit diff
path: root/mixins
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-08-03 01:53:18 +0300
committertzlil <tzlils@protonmail.com>2023-08-03 01:53:18 +0300
commitb41298f20d3d4d2bac036c13a1971653e1d8e767 (patch)
tree7e9c52e74d910cc6af264daff2a675d6ccd47467 /mixins
parent4963c10400387b2f9f62596de4937329a1c297d3 (diff)
forgot to fmt
Diffstat (limited to 'mixins')
-rw-r--r--mixins/firefox/default.nix58
1 files changed, 33 insertions, 25 deletions
diff --git a/mixins/firefox/default.nix b/mixins/firefox/default.nix
index e3fd84e..bcaa0ee 100644
--- a/mixins/firefox/default.nix
+++ b/mixins/firefox/default.nix
@@ -60,7 +60,13 @@ in
                 permissions = [];
               };
             }
-            (lib.fold lib.mergeAttrs {} (map (x: {${x.passthru.addonId} = {permissions = ["internal:privateBrowsingAllowed"]; origins = [];};}) addons))
+            (lib.fold lib.mergeAttrs {} (map (x: {
+                ${x.passthru.addonId} = {
+                  permissions = ["internal:privateBrowsingAllowed"];
+                  origins = [];
+                };
+              })
+              addons))
           ]
       );
 
@@ -177,19 +183,19 @@ in
         enable = true;
         package = pkgs.firefox-wayland.override {
           extraPolicies = {
-                    CaptivePortal = false;
-        DisableFirefoxStudies = true;
-        DisablePocket = true;
-        DisableTelemetry = true;
-        DisableFirefoxAccounts = true;
-        FirefoxHome = {
-          Pocket = false;
-          Snippets = false;
-        };
-        UserMessaging = {
-          ExtensionRecommendations = false;
-          SkipOnboarding = true;
-        };
+            CaptivePortal = false;
+            DisableFirefoxStudies = true;
+            DisablePocket = true;
+            DisableTelemetry = true;
+            DisableFirefoxAccounts = true;
+            FirefoxHome = {
+              Pocket = false;
+              Snippets = false;
+            };
+            UserMessaging = {
+              ExtensionRecommendations = false;
+              SkipOnboarding = true;
+            };
             OverrideFirstRunPage = "";
             Extensions.Install = map (x: x.src.outPath) config.home-manager.users.tzlil.programs.firefox.profiles."default".extensions;
           };
@@ -255,17 +261,19 @@ in
             };
           };
 
-          extraConfig = builtins.readFile (
-            builtins.fetchurl {
-              url = "https://raw.githubusercontent.com/arkenfox/user.js/master/user.js";
-              sha256 = "sha256:165c977fwncvrv0c8ddi633ckw97p3pkvjid5fj6j48smsv08axk";
-            }
-          ) + ''
-          user_pref('keyword.enabled', true);
-          user_pref("browser.startup.homepage", "https://lobste.rs");
-          user_pref("browser.startup.page", 1);
-          user_pref("privacy.resistFingerprinting", false);
-          '';
+          extraConfig =
+            builtins.readFile (
+              builtins.fetchurl {
+                url = "https://raw.githubusercontent.com/arkenfox/user.js/master/user.js";
+                sha256 = "sha256:165c977fwncvrv0c8ddi633ckw97p3pkvjid5fj6j48smsv08axk";
+              }
+            )
+            + ''
+              user_pref('keyword.enabled', true);
+              user_pref("browser.startup.homepage", "https://lobste.rs");
+              user_pref("browser.startup.page", 1);
+              user_pref("privacy.resistFingerprinting", false);
+            '';
           settings = {
             # for custom browser style
             "toolkit.legacyUserProfileCustomizations.stylesheets" = true;