settings.nix 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "browser.search.region" = "AU";
  3. "browser.search.isUS" = false;
  4. "distribution.searchplugins.defaultLocale" = "en-AU";
  5. "general.useragent.locale" = "en-AU";
  6. "browser.bookmarks.showMobileBookmarks" = true;
  7. "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
  8. # Disable telemetry
  9. "browser.newtabpage.activity-stream.feeds.telemetry" = false;
  10. "browser.ping-centre.telemetry" = false;
  11. "browser.tabs.crashReporting.sendReport" = false;
  12. "devtools.onboarding.telemetry.logged" = false;
  13. "toolkit.telemetry.enabled" = false;
  14. "toolkit.telemetry.server" = "data:,";
  15. "toolkit.telemetry.unified" = false;
  16. "toolkit.telemetry.archive.enabled" = false;
  17. "toolkit.telemetry.newProfilePing.enabled" = false;
  18. "toolkit.telemetry.shutdownPingSender.enabled" = false;
  19. "toolkit.telemetry.updatePing.enabled" = false;
  20. "toolkit.telemetry.bhrPing.enabled" = false;
  21. "toolkit.telemetry.firstShutdownPing.enabled" = false;
  22. # # Disable Pocket
  23. "browser.newtabpage.activity-stream.feeds.discoverystreamfeed" = false;
  24. "browser.newtabpage.activity-stream.feeds.section.topstories" = false;
  25. "browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
  26. "browser.newtabpage.activity-stream.showSponsored" = false;
  27. "extensions.pocket.enabled" = false;
  28. # Disable prefetching
  29. "network.dns.disablePrefetch" = true;
  30. "network.prefetch-next" = false;
  31. # Disable JS in PDFs
  32. "pdfjs.enableScripting" = false;
  33. # Harden SSL
  34. "security.ssl.require_safe_negotiation" = true;
  35. # Tweaks from archwiki
  36. "browser.cache.disk.enable" = false;
  37. "browser.cache.memory.enable" = true;
  38. "browser.cache.memory.capacity" = -1;
  39. "browser.aboutConfig.showWarning" = false;
  40. "browser.preferences.defaultPerformanceSettings.enabled" = false;
  41. "middlemouse.paste" = false;
  42. # Smooth Scroll
  43. "general.smoothScroll" = true;
  44. "general.smoothScroll.lines.durationMaxMS" = 125;
  45. "general.smoothScroll.lines.durationMinMS" = 125;
  46. "general.smoothScroll.mouseWheel.durationMaxMS" = 200;
  47. "general.smoothScroll.mouseWheel.durationMinMS" = 100;
  48. "general.smoothScroll.msdPhysics.enabled" = true;
  49. "general.smoothScroll.other.durationMaxMS" = 125;
  50. "general.smoothScroll.other.durationMinMS" = 125;
  51. "general.smoothScroll.pages.durationMaxMS" = 125;
  52. "general.smoothScroll.pages.durationMinMS" = 125;
  53. "mousewheel.min_line_scroll_amount" = 30;
  54. "mousewheel.system_scroll_override_on_root_content.enabled" = true;
  55. "mousewheel.system_scroll_override_on_root_content.horizontal.factor" = 175;
  56. "mousewheel.system_scroll_override_on_root_content.vertical.factor" = 175;
  57. "toolkit.scrollbox.horizontalScrollDistance" = 6;
  58. "toolkit.scrollbox.verticalScrollDistance" = 2;
  59. # # Extra
  60. "identity.fxaccounts.enabled" = false;
  61. "browser.download.useDownloadDir" = false;
  62. "browser.search.suggest.enabled" = false;
  63. "browser.urlbar.shortcuts.bookmarks" = false;
  64. "browser.urlbar.shortcuts.history" = false;
  65. "browser.urlbar.shortcuts.tabs" = false;
  66. "browser.urlbar.suggest.bookmark" = false;
  67. "browser.urlbar.suggest.searches" = false;
  68. "browser.urlbar.suggest.engines" = false;
  69. "browser.urlbar.suggest.history" = true;
  70. "browser.urlbar.suggest.openpage" = false;
  71. "browser.urlbar.suggest.topsites" = false;
  72. "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons" = false;
  73. "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features" = false;
  74. "signon.rememberSignons" = false;
  75. "signon.autofillForms" = false;
  76. "network.dns.disableIPv6" = true;
  77. "network.proxy.socks_remote_dns" = true;
  78. "dom.security.https_first" = true;
  79. # Disable permission
  80. # 0=always ask (default), 1=allow, 2=block
  81. "permissions.default.geo" = 2;
  82. "permissions.default.camera" = 2;
  83. "permissions.default.microphone" = 0;
  84. "permissions.default.desktop-notification" = 2;
  85. "permissions.default.xr" = 2; # Virtual Reality
  86. "browser.discovery.enabled" = false;
  87. "datareporting.healthreport.uploadEnabled" = false;
  88. "datareporting.policy.dataSubmissionEnabled" = false;
  89. "app.shield.optoutstudies.enabled" = false;
  90. "app.normandy.enabled" = false;
  91. "app.normandy.api_url" = "";
  92. # Firefox GNOME Theme
  93. # Hide the tab bar when only one tab is open.
  94. "gnomeTheme.hideSingleTab" = false;
  95. # Move Bookmarks toolbar under tabs.
  96. "gnomeTheme.bookmarksToolbarUnderTabs" = true;
  97. # Hide WebRTC indicator since GNOME provides their own privacy icons in the top right.
  98. "gnomeTheme.hideWebrtcIndicator" = true;
  99. # Use system theme icons instead of Adwaita icons included by theme.
  100. "gnomeTheme.systemIcons" = true;
  101. }