nixos/system/firefox.nix

128 lines
3.8 KiB
Nix

{...}: {
programs.firefox = {
enable = true;
languagePacks = ["en-GB"];
policies = {
Cookies = {
Behavior = "reject-tracker-and-partition-foreign";
Locked = true;
};
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";
};
"uBlock0@raymondhill.net" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
};
# Catppuccin Mocha (Lavender) theme
"{8446b178-c865-4f5c-8ccc-1d7887811ae3}" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/catppuccin-mocha-lavender-git/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 = "Grafana Dashboard";
url = "https://grafana.xenia.me.uk";
}
{
name = "AdGuard Home";
url = "https://guard.xenia.me.uk";
}
];
}
{
name = "Documentation";
children = [
{
name = "NixOS and Flakes";
url = "https://nixos-and-flakes.thiscute.world/";
}
{
name = "Stylix Docs";
url = "https://danth.github.io/stylix/";
}
{
name = "The Rust Book";
url = "https://doc.rust-lang.org/stable/book/";
}
{
name = "Rust by Example";
url = "https://doc.rust-lang.org/stable/rust-by-example/";
}
{
name = "Mozilla Policy Templates";
url = "https://mozilla.github.io/policy-templates/";
}
{
name = "Chrome Enterprise Policy List";
url = "https://chromeenterprise.google/policies/";
}
];
}
{
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;
};
};
}