frues-clan/users/pedro/home-configuration/browsers/librewolf.nix
Pedro Rey Anca 9e57effbbb
Some checks failed
Flake check / check (push) Failing after 31m3s
Update `flake.lock` / update_lockfile (push) Failing after 14m53s
Remove skip-redirect (annoying with some websites)
2025-10-08 23:18:19 +02:00

127 lines
3.7 KiB
Nix

{
pkgs,
inputs,
lib,
...
}: {
programs.librewolf = {
enable = true;
settings = {
"webgl.disabled" = false;
"privacy.resistFingerprinting" = true;
"privacy.clearOnShutdown.history" = false;
"privacy.clearOnShutdown.cookies" = false;
"network.cookie.lifetimePolicy" = 0;
"identity.fxaccounts.enabled" = true;
};
profiles.pedro = {
search = {
force = true;
default = "FruesX";
privateDefault = "FruesX";
order = ["FruesX" "ddg" "google"];
engines = {
"FruesX" = {
urls = [{template = "https://searx.peprolinbot.com/search?q={searchTerms}";}];
icon = "https://searx.peprolinbot.com/favicon.ico";
};
};
};
containersForce = true;
containers = {
Personal = {
color = "blue";
icon = "fingerprint";
id = 1;
};
University = {
color = "pink";
icon = "briefcase";
id = 2;
};
Shopping = {
color = "orange";
icon = "cart";
id = 3;
};
Banking = {
color = "green";
icon = "dollar";
id = 4;
};
Private = {
color = "purple";
icon = "chill";
id = 5;
};
};
extensions = {
force = true;
packages = with inputs.firefox-addons.packages.${pkgs.system}; [
ublock-origin # Included in Librewolf
bitwarden
libredirect
multi-account-containers
tridactyl
];
settings = {
"uBlock0@raymondhill.net".settings = import ./extensions/ublock-origin.nix;
};
};
bookmarks = {};
settings = {
webgl.disabled = false;
privacy.resistFingerprinting = true;
privacy.clearOnShutdown = {
history = false;
cookies = false;
};
network.cookie.lifetimePolicy = 0;
identity.fxaccounts.enabled = true;
# Sync settings
services.sync.engine = {
bookmarks = true;
history = true;
tabs = true;
addresses = false;
creditcards = false;
passwords = false;
prefs = false;
addons = false;
};
browser.urlbar.autoFill = false;
# Layout
browser.uiCustomization.state = builtins.toJSON {
currentVersion = 20;
newElementCount = 5;
dirtyAreaCache = ["nav-bar" "PersonalToolbar" "toolbar-menubar" "TabsToolbar" "widget-overflow-fixed-list"];
placements = {
PersonalToolbar = ["personal-bookmarks"];
TabsToolbar = ["tabbrowser-tabs" "new-tab-button" "alltabs-button"];
nav-bar = [
"back-button"
"forward-button"
"stop-reload-button"
"urlbar-container"
"downloads-button"
"ublock0_raymondhill_net-browser-action" # uBlock
"_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action" # Bitwarden
"7esoorv3_alefvanoon_anonaddy_me-browser-action" # LibRedirect
"_testpilot-containers-browser-action" # Multi-account containers
"unified-extensions-button" # Button with the rest of extensions
];
toolbar-menubar = ["menubar-items"];
unified-extensions-area = [];
widget-overflow-fixed-list = [];
};
seen = ["developer-button" "ublock0_raymondhill_net-browser-action" "_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action" "_testpilot-containers-browser-action"];
};
};
};
};
}