Migrate config (frues-pc machine for now) from https://git.peprolinbot.com/peprolinbot/nixos-config, with improvements
This commit is contained in:
parent
ebd178b0a5
commit
7606f9e051
66 changed files with 9465 additions and 73 deletions
10
users/pedro/home-configuration/browsers/default.nix
Normal file
10
users/pedro/home-configuration/browsers/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{...}: {
|
||||
imports = [(import ./librewolf.nix)];
|
||||
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"text/html" = ["librewolf.desktop"];
|
||||
"text/xml" = ["librewolf.desktop"];
|
||||
"x-scheme-handler/http" = ["librewolf.desktop"];
|
||||
"x-scheme-handler/https" = ["librewolf.desktop"];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
selectedFilterLists = [
|
||||
"user-filters"
|
||||
"ublock-filters"
|
||||
"ublock-badware"
|
||||
"ublock-privacy"
|
||||
"ublock-quick-fixes"
|
||||
"ublock-unbreak"
|
||||
"easylist"
|
||||
"easyprivacy"
|
||||
"LegitimateURLShortener"
|
||||
"adguard-spyware-url"
|
||||
"urlhaus-1"
|
||||
"curben-phishing"
|
||||
"plowe-0"
|
||||
"fanboy-cookiemonster"
|
||||
"ublock-cookies-easylist"
|
||||
];
|
||||
}
|
128
users/pedro/home-configuration/browsers/librewolf.nix
Normal file
128
users/pedro/home-configuration/browsers/librewolf.nix
Normal file
|
@ -0,0 +1,128 @@
|
|||
{
|
||||
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
|
||||
skip-redirect
|
||||
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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue