nixos/system/firefox.nix
Evie Litherland-Smith 6e03df701f Re-enable firefox as default browser
Keep chromium installed for PWA support
2023-11-24 08:44:12 +00:00

177 lines
5.5 KiB
Nix

{ ... }:
{
programs.firefox = {
enable = true;
languagePacks = [ "en-GB" ];
policies = {
Cookies = { Behaviour = "reject-tracker-and-partition-foreign"; };
DisableAppUpdate = true;
DisableBuiltinPDFViewer = true;
DisableFirefoxAccounts = true;
DisableFirefoxStudies = true;
DisableProfileImport = true;
DisableSetDesktopBackground = true;
DisableSystemAddonUpdate = true;
DisableTelemetry = true;
DisplayBookmarksToolbar = "newtab";
DisplayMenuBar = "default-off";
EnableTrackingProtection = {
Value = true;
Cryptomining = true;
Fingerprinting = true;
EmailTracking = true;
};
ExtensionSettings = {
"queryamoid@kaply.com" = {
installation_mode = "force_installed";
install_url =
"https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
};
"{995463c6-18a1-4cf7-b0f1-564e050d778b}" = {
# Tokyonight theme
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/tokyonight_vim/latest.xpi";
};
"uBlock0@raymondhill.net" = {
# uBlock Origin
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
};
"7esoorv3@alefvanoon.anonaddy.me" = {
# LibRedirect
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/libredirect/latest.xpi";
};
"jid1-KKzOGWgsW3Ao4Q@jetpack" = {
# I don't care about cookies
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/i-dont-care-about-cookies/latest.xpi";
};
"floccus@handmadeideas.org" = {
# floccus bookmarks sync
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/floccus/latest.xpi";
};
"addon@simplelogin" = {
# SimpleLogin
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/simplelogin/latest.xpi";
};
};
FirefoxHome = {
Search = true;
TopSites = true;
SponsoredTopSites = false;
Highlights = false;
Pocket = false;
SponsoredPocket = false;
Snippets = false;
Locked = true;
};
ManagedBookmarks = [
{ toplevel_name = "Managed Bookmarks"; }
{
name = "Server";
children = [
{
name = "Gitea";
url = "https://git.xenia.me.uk";
}
{
name = "NextCloud";
url = "https://cloud.xenia.me.uk";
}
{
name = "Syncthing";
url = "https://sync.xenia.me.uk";
}
{
name = "AdGuard Home";
url = "https://guard.xenia.me.uk";
}
{
name = "Grafana Dashboard";
url = "https://grafana.xenia.me.uk";
}
{
name = "ntfy.sh topics";
children = [
{
name = "JET Pulse Notifications";
url = "https://ntfy.xenia.me.uk/jet_pulse_notifications";
}
{
name = "MAST-U Pulse Notifications";
url = "https://ntfy.xenia.me.uk/mast_u_pulse_notifications";
}
];
}
];
}
{
name = "Docs and Repos";
children = [
{
name = "Config";
url = "https://git.xenia.me.uk/xenia/nixos";
}
{
name = "Crafted Emacs";
url = "https://github.com/SystemCrafters/crafted-emacs";
}
{
name = "NixOS and Flakes";
url = "https://nixos-and-flakes.thiscute.world/";
}
{
name = "Nerd Fonts Cheat Sheet";
url = "https://www.nerdfonts.com/cheat-sheet";
}
{
name = "Stylix Docs";
url = "https://danth.github.io/stylix/";
}
{
name = "Mozilla Policy Templates";
url = "https://mozilla.github.io/policy-templates/";
}
{
name = "Awesome Repos";
children = [
{
name = "Emacs";
url = "https://github.com/emacs-tw/awesome-emacs";
}
{
name = "Hyprland";
url =
"https://github.com/hyprland-community/awesome-hyprland";
}
{
name = "Gitea";
url = "https://gitea.com/gitea/awesome-gitea";
}
];
}
];
}
];
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
PasswordManagerEnabled = false;
PopupBlocking = { Default = true; };
RequestedLocales = [ "en-GB" ];
SearchEngines = { Default = "DuckDuckGo"; };
ShowHomeButton = false;
StartDownloadsInTempDirectory = true;
};
};
}