mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
home/{zen-browser,firefox}: refactor
This commit is contained in:
parent
ae75bd7483
commit
760774d053
2 changed files with 15 additions and 119 deletions
|
|
@ -53,6 +53,10 @@ in
|
||||||
"browser.tabs.loadInBackground" = true;
|
"browser.tabs.loadInBackground" = true;
|
||||||
"browser.ctrlTab.sortByRecentlyUsed" = false;
|
"browser.ctrlTab.sortByRecentlyUsed" = false;
|
||||||
"layout.css.devPixelsPerPx" = 1.1;
|
"layout.css.devPixelsPerPx" = 1.1;
|
||||||
|
"browser.startup.page" = 1;
|
||||||
|
"browser.translations.automaticallyPopup" = false;
|
||||||
|
"browser.tabs.closeWindowWithLastTab" = true;
|
||||||
|
"general.smoothScroll" = false;
|
||||||
|
|
||||||
# Sponsored crap
|
# Sponsored crap
|
||||||
# Yes
|
# Yes
|
||||||
|
|
|
||||||
|
|
@ -1,53 +1,17 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (pkgs) nur;
|
|
||||||
|
|
||||||
cfg = config.programs.zen-browser;
|
cfg = config.programs.zen-browser;
|
||||||
|
|
||||||
|
firefoxCfg = config.programs.firefox;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.zen-browser = {
|
programs.zen-browser = {
|
||||||
# https://mozilla.github.io/policy-templates
|
policies = firefoxCfg.policies;
|
||||||
# The following have more complex logic, keep them as policies and not profiles
|
|
||||||
policies = {
|
|
||||||
RequestedLocales = [
|
|
||||||
"fr-FR" # for fuck sake stop showing me translated version of French gov sites
|
|
||||||
"zh-TW"
|
|
||||||
"en-US"
|
|
||||||
];
|
|
||||||
|
|
||||||
SearchEngines = {
|
|
||||||
Remove = [
|
|
||||||
"Google"
|
|
||||||
"Bing"
|
|
||||||
"DuckDuckGo"
|
|
||||||
"Qwant"
|
|
||||||
"eBay"
|
|
||||||
"Perplexity"
|
|
||||||
];
|
|
||||||
Default = "DuckDuckGo Lite";
|
|
||||||
Add = [
|
|
||||||
{
|
|
||||||
Name = "DuckDuckGo Lite";
|
|
||||||
URLTemplate = "https://lite.duckduckgo.com/lite/search?q={searchTerms}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
NoDefaultBookmarks = true;
|
|
||||||
DisplayMenuBar = "never";
|
|
||||||
DisplayBookmarksToolbar = "never";
|
|
||||||
DNSOverHTTPS = {
|
|
||||||
Enabled = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# https://searchfox.org/mozilla-central/source/browser/components/enterprisepolicies/Policies.sys.mjs
|
|
||||||
# Some policies can be rewritten to profiles configuration
|
|
||||||
#
|
|
||||||
# "locked" semantic from zen (doesn't seem to be doing anything, attempted for zen-twilight 1.18t)
|
# "locked" semantic from zen (doesn't seem to be doing anything, attempted for zen-twilight 1.18t)
|
||||||
# https://github.com/0xc000022070/zen-browser-flake/tree/main#preferences
|
# https://github.com/0xc000022070/zen-browser-flake/tree/main#preferences
|
||||||
#
|
#
|
||||||
|
|
@ -57,88 +21,16 @@ in
|
||||||
# - click the buttons
|
# - click the buttons
|
||||||
# - diff it
|
# - diff it
|
||||||
# diff .zen/default/prefs.js{.bk,}
|
# diff .zen/default/prefs.js{.bk,}
|
||||||
profiles.default = {
|
profiles.default = lib.mkMerge [
|
||||||
settings = {
|
firefoxCfg.profiles.default
|
||||||
|
{
|
||||||
# Zen specific
|
# Zen specific
|
||||||
|
settings = {
|
||||||
"zen.theme.content-element-separation" = 0; # Remove "borders" around window
|
"zen.theme.content-element-separation" = 0; # Remove "borders" around window
|
||||||
|
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
||||||
"browser.tabs.loadInBackground" = true;
|
|
||||||
"browser.ctrlTab.sortByRecentlyUsed" = false;
|
|
||||||
"layout.css.devPixelsPerPx" = 1.1;
|
|
||||||
"browser.startup.page" = 1;
|
|
||||||
"browser.translations.automaticallyPopup" = false;
|
|
||||||
"browser.tabs.closeWindowWithLastTab" = true;
|
|
||||||
"general.smoothScroll" = false;
|
|
||||||
|
|
||||||
# Sponsored crap
|
|
||||||
# Yes
|
|
||||||
"browser.newtabpage.activity-stream.showSearch" = true;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.topsites" = true;
|
|
||||||
# No
|
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.section.highlights" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.system.topstories" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
|
||||||
|
|
||||||
# URL
|
|
||||||
# Yes
|
|
||||||
"browser.urlbar.suggest.quicksuggest.nonsponsored" = true;
|
|
||||||
# No
|
|
||||||
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
|
|
||||||
|
|
||||||
# Pasword manager
|
|
||||||
"signon.rememberSignons" = false;
|
|
||||||
"services.passwordSavingEnabled" = false;
|
|
||||||
"pref.privacy.disable_button.view_passwords" = false;
|
|
||||||
|
|
||||||
# Hardware acceleration
|
|
||||||
"layers.acceleration.disabled" = false;
|
|
||||||
|
|
||||||
# Screenshot
|
|
||||||
"screenshots.browser.component.enabled" = true;
|
|
||||||
|
|
||||||
# Recommendations
|
|
||||||
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons" = false;
|
|
||||||
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features" = false;
|
|
||||||
"extensions.htmlaboutaddons.recommendations.enabled" = false; # Addons
|
|
||||||
|
|
||||||
# Onboarding
|
|
||||||
"browser.aboutwelcome.enabled" = false;
|
|
||||||
|
|
||||||
# AI crap
|
|
||||||
"browser.ml.chat.enabled" = false;
|
|
||||||
"browser.ml.chat.page" = false;
|
|
||||||
"browser.ml.chat.shortcuts" = false;
|
|
||||||
"browser.ml.chat.sidebar" = false;
|
|
||||||
|
|
||||||
# Prevent WebRTC leak
|
|
||||||
# https://mullvad.net/en/help/webrtc
|
|
||||||
"media.peerconnection.enabled" = false;
|
|
||||||
};
|
};
|
||||||
|
}
|
||||||
extensions.packages =
|
|
||||||
let
|
|
||||||
addons = nur.repos.rycee.firefox-addons;
|
|
||||||
in
|
|
||||||
[
|
|
||||||
addons.ublock-origin
|
|
||||||
addons.privacy-badger
|
|
||||||
addons.user-agent-string-switcher
|
|
||||||
|
|
||||||
/*
|
|
||||||
Here's to you who want to remove news feed eradicator because you find it annoying:
|
|
||||||
It is here to annoy you so it is less likely for you to be on the agency inversion path.
|
|
||||||
DO NOT REMOVE IT. I repeat, DO NOT REMOVE IT.
|
|
||||||
|
|
||||||
If you think it's annoying, go do some jump rope, sing, live.
|
|
||||||
*/
|
|
||||||
addons.news-feed-eradicator # did you read the comment above?
|
|
||||||
addons.multi-account-containers
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
xdg.mimeApps =
|
xdg.mimeApps =
|
||||||
let
|
let
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue