From b41298f20d3d4d2bac036c13a1971653e1d8e767 Mon Sep 17 00:00:00 2001 From: tzlil Date: Thu, 3 Aug 2023 01:53:18 +0300 Subject: forgot to fmt --- mixins/firefox/default.nix | 58 ++++++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 25 deletions(-) (limited to 'mixins') 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; -- cgit 1.4.1