Move to Librewolf and reestructure browser config
This commit is contained in:
parent
14ec90d5b4
commit
15c05eb5fd
|
@ -6,6 +6,11 @@
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
|
|
||||||
|
firefox-addons = {
|
||||||
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
hypr-contrib.url = "github:hyprwm/contrib";
|
hypr-contrib.url = "github:hyprwm/contrib";
|
||||||
|
|
||||||
fjordlauncher.url = "github:unmojang/FjordLauncher";
|
fjordlauncher.url = "github:unmojang/FjordLauncher";
|
||||||
|
|
10
modules/home/browsers/default.nix
Normal file
10
modules/home/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"];
|
||||||
|
};
|
||||||
|
}
|
80
modules/home/browsers/librewolf.nix
Normal file
80
modules/home/browsers/librewolf.nix
Normal file
|
@ -0,0 +1,80 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.librewolf = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"webgl.disabled" = false;
|
||||||
|
# "privacy.resistFingerprinting" = false;
|
||||||
|
"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" "DuckDuckGo" "Google"];
|
||||||
|
engines = {
|
||||||
|
"FruesX" = {
|
||||||
|
urls = [{template = "https://searx.peprolinbot.com/search?q={searchTerms}";}];
|
||||||
|
iconUpdateURL = "https://searx.peprolinbot.com/favicon.ico";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
bookmarks = {};
|
||||||
|
extensions = with inputs.firefox-addons.packages.${pkgs.system}; [
|
||||||
|
# ublock-origin # Included in Librewolf
|
||||||
|
bitwarden
|
||||||
|
skip-redirect
|
||||||
|
libredirect
|
||||||
|
multi-account-containers
|
||||||
|
clearurls
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
hoppscotch
|
||||||
|
];
|
||||||
|
bookmarks = {};
|
||||||
|
settings = {
|
||||||
|
# Sync settings
|
||||||
|
"services.sync.engine.addresses" = false;
|
||||||
|
"services.sync.engine.bookmarks" = true;
|
||||||
|
"services.sync.engine.creditcards" = false;
|
||||||
|
"services.sync.engine.history" = true;
|
||||||
|
"services.sync.engine.passwords" = false;
|
||||||
|
"services.sync.engine.prefs" = false;
|
||||||
|
"services.sync.engine.tabs" = true;
|
||||||
|
|
||||||
|
# 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"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,11 +6,11 @@
|
||||||
}: {
|
}: {
|
||||||
imports =
|
imports =
|
||||||
[(import ./bat.nix)] # better cat command
|
[(import ./bat.nix)] # better cat command
|
||||||
|
++ [(import ./browsers)] # browser configurations
|
||||||
++ [(import ./btop.nix)] # resouces monitor
|
++ [(import ./btop.nix)] # resouces monitor
|
||||||
++ [(import ./cava.nix)] # audio visualizer
|
++ [(import ./cava.nix)] # audio visualizer
|
||||||
++ [(import ./discord.nix)] # discord with catppuccin theme
|
++ [(import ./discord.nix)] # discord with catppuccin theme
|
||||||
++ [(import ./gpg.nix)] # GnuPG and its agent (gpg-agent)
|
++ [(import ./gpg.nix)] # GnuPG and its agent (gpg-agent)
|
||||||
++ [(import ./floorp/floorp.nix)] # firefox based browser
|
|
||||||
++ [(import ./fuzzel.nix)] # launcher
|
++ [(import ./fuzzel.nix)] # launcher
|
||||||
++ [(import ./gaming.nix)] # packages related to gaming
|
++ [(import ./gaming.nix)] # packages related to gaming
|
||||||
++ [(import ./git.nix)] # version control
|
++ [(import ./git.nix)] # version control
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
Bitwarden Password Manager
|
|
||||||
ClearURLs
|
|
||||||
Dark Reader
|
|
||||||
Decentraleyes
|
|
||||||
Firefox Color
|
|
||||||
FoxyProxy
|
|
||||||
I still don't care about cookies
|
|
||||||
LibRedirect
|
|
||||||
Privacy Badger
|
|
||||||
Ruffle - Flash Emulator
|
|
||||||
Tree Style Tab
|
|
||||||
Tridactyl
|
|
||||||
uBlock Origin
|
|
||||||
Wappalyzer - Technology profiler
|
|
|
@ -1,3 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
home.packages = with pkgs; [floorp];
|
|
||||||
}
|
|
|
@ -20,6 +20,7 @@
|
||||||
QT_QPA_PLATFORMTHEME = "qt5ct";
|
QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||||
QT_STYLE_OVERRIDE = "kvantum";
|
QT_STYLE_OVERRIDE = "kvantum";
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
|
MOZ_USE_XINPUT2 = "1";
|
||||||
WLR_BACKEND = "vulkan";
|
WLR_BACKEND = "vulkan";
|
||||||
WLR_NO_HARDWARE_CURSORS = "1";
|
WLR_NO_HARDWARE_CURSORS = "1";
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
|
|
Loading…
Reference in a new issue