diff options
Diffstat (limited to 'mixins/firefox')
-rw-r--r-- | mixins/firefox/default.nix | 58 |
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; |