nixcfg/homes/aly/firefox/default.nix

218 lines
6.2 KiB
Nix
Raw Normal View History

{
config,
pkgs,
...
}: {
2024-08-08 22:22:14 -04:00
# home.file = let
# source = builtins.fetchGit {
# url = "https://github.com/rafaelmardojai/firefox-gnome-theme.git";
# rev = "fb5b578a4f49ae8705e5fea0419242ed1b8dba70";
# ref = "master";
# };
# in {
# ".mozilla/firefox/default/chrome".source = source;
# ".mozilla/firefox/work/chrome".source = source;
# };
programs.firefox = {
enable = true;
2024-06-30 16:34:12 -04:00
profiles = {
default = {
extensions = with config.nur.repos.rycee.firefox-addons; [
2024-06-30 16:34:12 -04:00
augmented-steam
decentraleyes
omnivore
2024-07-02 22:10:51 -04:00
raindropio
2024-06-30 16:34:12 -04:00
sidebery
sponsorblock
ublock-origin
zoom-redirector
];
2024-06-30 16:34:12 -04:00
id = 0;
2024-06-30 16:34:12 -04:00
search = {
default = "Brave";
force = true;
2024-07-04 23:02:19 -04:00
2024-06-30 16:34:12 -04:00
engines = {
2024-07-10 23:43:51 -04:00
"Bing".metaData = {
hidden = true;
alias = "!bing";
};
2024-06-30 16:34:12 -04:00
"Brave" = {
definedAliases = ["!brave"];
iconUpdateURL = "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/brave-search-icon.CsIFM2aN.svg";
updateInterval = 24 * 60 * 60 * 1000; # every day
2024-06-30 16:34:12 -04:00
urls = [
{
template = "https://search.brave.com/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
};
2024-06-30 16:34:12 -04:00
2024-07-10 23:43:51 -04:00
"Google".metaData = {
hidden = true;
alias = "!google";
};
2024-07-02 22:28:46 -04:00
"Kagi" = {
definedAliases = ["!kagi"];
iconUpdateURL = "https://kagi.com/favicon.ico";
updateInterval = 24 * 60 * 60 * 1000; # every day
2024-07-02 22:28:46 -04:00
urls = [
{
template = "https://kagi.com/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
};
2024-07-04 23:02:19 -04:00
"NixOS Wiki" = {
definedAliases = ["!nw" "!nixwiki"];
iconUpdateURL = "https://wiki.nixos.org/favicon.ico";
updateInterval = 24 * 60 * 60 * 1000; # every day
urls = [
{
template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
}
];
};
2024-06-30 16:34:12 -04:00
"nixpkgs" = {
definedAliases = ["!nix"];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
};
"Wiktionary" = {
2024-07-04 23:02:19 -04:00
definedAliases = ["!wikt"];
iconUpdateURL = "https://en.wiktionary.org/favicon.ico";
updateInterval = 24 * 60 * 60 * 1000; # every day
urls = [
{
template = "https://en.wiktionary.org/wiki/{searchTerms}";
}
];
};
};
2024-07-10 23:43:51 -04:00
2024-07-04 23:02:19 -04:00
order = [
"Brave"
"Kagi"
"nixpkgs"
"NixOS Wiki"
"DuckDuckGo"
"Wikipedia"
"Wiktionary"
];
};
2024-06-30 16:34:12 -04:00
settings = {
"browser.toolbars.bookmarks.visibility" = "newtab";
"network.cookie.cookieBehavior" = 1;
"permissions.default.desktop-notification" = 2;
"privacy.donottrackheader.enabled" = true;
"privacy.fingerprintingProtection" = true;
"privacy.trackingprotection.emailtracking.enabled" = true;
"privacy.trackingprotection.enabled" = true;
"privacy.trackingprotection.global-checkbox.enabled" = true;
"privacy.trackingprotection.socialtracking.enabled" = true;
"services.sync.prefs.sync.browser.uiCustomization.state" = true;
"svg.context-properties.content.enabled" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
2024-06-30 16:34:12 -04:00
};
};
2024-06-30 16:34:12 -04:00
work = {
extensions = with config.nur.repos.rycee.firefox-addons; [
2024-07-02 22:01:01 -04:00
clearurls
2024-06-30 16:34:12 -04:00
consent-o-matic
decentraleyes
ublock-origin
zoom-redirector
];
2024-06-30 16:34:12 -04:00
settings = {
"browser.bookmarks.file" = "${./bookmarks-work.html}";
"browser.places.importBookmarksHTML" = true;
"browser.toolbars.bookmarks.visibility" = "newtab";
"identity.fxaccounts.enabled" = false;
"network.cookie.cookieBehavior" = 1;
"privacy.donottrackheader.enabled" = true;
"privacy.fingerprintingProtection" = true;
"privacy.trackingprotection.emailtracking.enabled" = true;
"privacy.trackingprotection.enabled" = true;
"privacy.trackingprotection.global-checkbox.enabled" = true;
"privacy.trackingprotection.socialtracking.enabled" = true;
"signon.rememberSignons" = false;
"svg.context-properties.content.enabled" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
2024-06-30 16:34:12 -04:00
};
2024-06-30 16:34:12 -04:00
id = 1;
2024-06-30 16:34:12 -04:00
search = {
default = "Google";
force = true;
engines = {
2024-07-10 23:43:51 -04:00
"Bing".metaData = {
hidden = true;
alias = "!bing";
};
2024-07-10 23:43:51 -04:00
"DuckDuckGo".metaData = {
hidden = true;
alias = "!ddg";
};
};
};
};
};
};
xdg.desktopEntries.firework = {
categories = ["Application" "Network" "WebBrowser"];
exec = "firefox -p work --name firework %U";
genericName = "Web Browser";
icon = "firefox";
mimeType = ["text/html" "text/xml"];
name = "Firefox (work)";
settings = {StartupWMClass = "firework";};
startupNotify = true;
terminal = false;
};
}