mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-24 17:23:09 +01:00
b4adc570d0
This simplifies things a bit since we're no longer relying on another input and can add extensions not in the firefox-addons repository.
85 lines
2.0 KiB
Nix
85 lines
2.0 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
nix-config,
|
|
phone,
|
|
...
|
|
}:
|
|
|
|
let
|
|
inherit (lib) mkIf singleton;
|
|
|
|
friendlyfox = pkgs.callPackage ../packages/friendlyfox.nix { };
|
|
in
|
|
{
|
|
programs.librewolf = {
|
|
enable = true;
|
|
|
|
package = pkgs.librewolf.override {
|
|
cfg.speechSynthesisSupport = false;
|
|
};
|
|
|
|
profiles.default = {
|
|
extensions = with nix-config.packages.${pkgs.system}; [
|
|
ublock-origin
|
|
yomitan
|
|
];
|
|
|
|
search = {
|
|
force = true;
|
|
default = "Mullvad";
|
|
privateDefault = "Mullvad";
|
|
|
|
engines = {
|
|
Mullvad = {
|
|
urls = singleton {
|
|
template = "https://leta.mullvad.net";
|
|
|
|
params = singleton {
|
|
name = "q";
|
|
value = "{searchTerms}";
|
|
};
|
|
};
|
|
|
|
icon = "${pkgs.mullvad-vpn}/share/icons/hicolor/32x32/apps/mullvad-vpn.png";
|
|
};
|
|
};
|
|
};
|
|
|
|
settings = {
|
|
"extensions.autoDisableScopes" = 0;
|
|
};
|
|
};
|
|
|
|
settings = {
|
|
"middlemouse.paste" = false;
|
|
|
|
"browser.download.useDownloadDir" = true;
|
|
"browser.tabs.insertAfterCurrent" = true;
|
|
"browser.tabs.warnOnClose" = true;
|
|
"browser.toolbars.bookmarks.visibility" = "never";
|
|
"browser.quitShortcut.disabled" = true;
|
|
"browser.sessionstore.restore_pinned_tabs_on_demand" = true;
|
|
|
|
"browser.urlbar.suggest.bookmark" = false;
|
|
"browser.urlbar.suggest.engines" = false;
|
|
"browser.urlbar.suggest.history" = false;
|
|
"browser.urlbar.suggest.openpage" = false;
|
|
"browser.urlbar.suggest.topsites" = false;
|
|
"browser.urlbar.trimHttps" = true;
|
|
|
|
"sidebar.position_start" = false;
|
|
"findbar.highlightAll" = true;
|
|
|
|
"xpinstall.signatures.required" = false;
|
|
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
};
|
|
};
|
|
|
|
home.file = mkIf phone {
|
|
".librewolf/default/chrome/userChrome.css".source = "${friendlyfox}/userChrome.css";
|
|
".librewolf/default/chrome/userContent.css".source = "${friendlyfox}/userContent.css";
|
|
};
|
|
}
|