2024-01-07 17:50:16 -05:00
|
|
|
{pkgs, ...}: {
|
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
policies = {
|
|
|
|
DisablePocket = true;
|
|
|
|
DisplayBookmarksToolbar = true;
|
|
|
|
DontCheckDefaultBrowser = true;
|
|
|
|
OfferToSaveLogins = false;
|
|
|
|
NoDefaultBookmarks = true;
|
|
|
|
PasswordManagerEnable = false;
|
|
|
|
DNSOverHTTPS = {
|
|
|
|
Enabled = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
profiles.notohh = {
|
|
|
|
id = 0;
|
|
|
|
isDefault = true;
|
|
|
|
name = "notohh";
|
|
|
|
settings = {
|
|
|
|
"browser.search.separatePrivateDefault" = false;
|
|
|
|
"browser.search.separatePrivateDefault.ui.enabled" = true;
|
|
|
|
"browser.startup.homepage" = "http://dashboard.internal.flake.sh/";
|
2024-02-05 10:03:48 -05:00
|
|
|
"network.trr.mode" = 5;
|
2024-01-17 07:40:42 -05:00
|
|
|
"dom.security.https_first" = true;
|
|
|
|
"dom.security.https_only_mode" = true;
|
|
|
|
"dom.security.https_only_mode_ever_enabled" = true;
|
2024-01-07 17:50:16 -05:00
|
|
|
};
|
|
|
|
extraConfig = builtins.readFile ./user.js/betterfox.js;
|
|
|
|
search = {
|
2024-03-29 18:30:54 -04:00
|
|
|
default = "DuckDuckGo";
|
2024-01-23 22:10:13 -05:00
|
|
|
force = true;
|
2024-01-07 17:50:16 -05:00
|
|
|
engines = {
|
2024-02-02 07:53:33 -05:00
|
|
|
"Kagi" = {
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
template = "https://kagi.com/search";
|
|
|
|
params = [
|
|
|
|
{
|
|
|
|
name = "q";
|
|
|
|
value = "{searchTerms}";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
definedAliases = ["@g"];
|
|
|
|
};
|
2024-01-07 17:50:16 -05:00
|
|
|
"SearXNG" = {
|
|
|
|
urls = [
|
|
|
|
{
|
2024-01-09 00:24:50 -05:00
|
|
|
template = "http://100.108.113.89:8100";
|
2024-01-07 17:50:16 -05:00
|
|
|
params = [
|
|
|
|
{
|
|
|
|
name = "q";
|
|
|
|
value = "{searchTerms}";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
definedAliases = ["@sx"];
|
|
|
|
};
|
|
|
|
"Nix Packages" = {
|
|
|
|
urls = [
|
|
|
|
{
|
|
|
|
template = "https://search.nixos.org/packages";
|
|
|
|
params = [
|
|
|
|
{
|
|
|
|
name = "type";
|
|
|
|
value = "packages";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "query";
|
|
|
|
value = "{searchTerms}";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
|
|
definedAliases = ["@np"];
|
|
|
|
};
|
|
|
|
"Bing".metaData.hidden = true;
|
|
|
|
"Google".metaData.hidden = true;
|
|
|
|
"Amazon.com".metaData.hidden = true;
|
|
|
|
"eBay".metaData.hidden = true;
|
2024-03-29 18:30:54 -04:00
|
|
|
"DuckDuckGo".metaData.hidden = false;
|
2024-01-07 17:50:16 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
|
|
# security
|
|
|
|
bitwarden
|
|
|
|
ublock-origin
|
|
|
|
|
|
|
|
#leisure
|
|
|
|
darkreader
|
|
|
|
mal-sync
|
2024-01-09 00:24:50 -05:00
|
|
|
stylus
|
2024-02-08 11:42:56 -05:00
|
|
|
firefox-color
|
2024-01-07 17:50:16 -05:00
|
|
|
|
|
|
|
#utility
|
|
|
|
new-tab-override
|
2024-03-29 18:30:54 -04:00
|
|
|
sponsorblock
|
|
|
|
return-youtube-dislikes
|
2024-11-12 16:35:58 -05:00
|
|
|
violentmonkey
|
2024-01-07 17:50:16 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xdg.mimeApps = {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
|
|
|
"x-scheme-handler/discord-409416265891971072" = ["discord-409416265891971072.desktop"];
|
|
|
|
"x-scheme-handler/discord-402572971681644545" = ["discord-402572971681644545.desktop"];
|
|
|
|
"x-scheme-handler/discord-696343075731144724" = ["discord-696343075731144724.desktop"];
|
|
|
|
"x-scheme-handler/http" = ["firefox.desktop"];
|
|
|
|
"x-scheme-handler/https" = ["firefox.desktop"];
|
|
|
|
"x-scheme-handler/chrome" = ["firefox.desktop"];
|
|
|
|
"text/html" = ["firefox.desktop"];
|
|
|
|
"application/x-extension-htm" = ["firefox.desktop"];
|
|
|
|
"application/x-extension-html" = ["firefox.desktop"];
|
|
|
|
"application/x-extension-shtml" = ["firefox.desktop"];
|
|
|
|
"application/xhtml+xml" = ["firefox.desktop"];
|
|
|
|
"application/x-extension-xhtml" = ["firefox.desktop"];
|
|
|
|
"application/x-extension-xht" = ["firefox.desktop"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|