NixOS-Configs/home/gui/librewolf.nix
2026-05-29 14:47:29 -05:00

74 lines
2.7 KiB
Nix

{
config,
pkgs,
...
}: {
programs.firefox = {
enable = true;
# package = pkgs.librewolf;
configPath = "${config.xdg.configHome}/mozilla/firefox";
package = pkgs.firefox.override {
nativeMessagingHosts = [
pkgs.tridactyl-native
pkgs.ff2mpv
];
};
policies = {
DisableTelemetry = true;
DisableFirefoxStudies = true;
ExtensionSettings = {
# Catpuccin Mocha - Lavender
"{8446b178-c865-4f5c-8ccc-1d7887811ae3}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/catppuccin-mocha-lavender-git/latest.xpi";
installation_mode = "force_installed";
};
# Tridactyl
"tridactyl.vim@cmcaine.co.uk" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/tridactyl-vim/latest.xpi";
installation_mode = "force_installed";
};
# uBlock Origin
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
# Bitwarden
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
installation_mode = "force_installed";
};
# Dark Reader
"addon@darkreader.org" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
installation_mode = "force_installed";
};
# ff2mpv
"ff2mpv@yossarian.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/ff2mpv/darkreader/latest.xpi";
installation_mode = "force_installed";
};
};
FirefoxHome = {
"Search" = false;
};
HardwareAcceleration = true;
Preferences = {
"browser.preferences.defaultPerformanceSettings.enabled" = false;
"browser.startup.homepage" = "about:home";
"browser.toolbar.bookmarks.visibility" = "newtab";
"browser.toolbars.bookmarks.visibility" = "newtab";
"browser.urlbar.suggest.bookmark" = false;
"browser.urlbar.suggest.engines" = false;
"browser.urlbar.suggest.history" = false;
"browser.urlbar.suggest.openpage" = false;
"browser.urlbar.suggest.recentsearches" = false;
"browser.urlbar.suggest.topsites" = false;
"browser.warnOnQuit" = false;
"browser.warnOnQuitShortcut" = false;
"places.history.enabled" = "false";
"privacy.resistFingerprinting" = true;
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
};
};
};
}