nixos/system/firefox.nix

189 lines
5.5 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [ passff-host ];
programs.firefox = {
enable = true;
nativeMessagingHosts.passff = 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 = "always";
DisplayMenuBar = "default-off";
EnableTrackingProtection = {
Value = true;
Cryptomining = true;
Fingerprinting = true;
EmailTracking = true;
};
ExtensionSettings = {
"uBlock0@raymondhill.net" = {
installation_mode = "force_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
};
"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";
};
"addon@simplelogin" = {
installation_mode = "normal_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/simplelogin/latest.xpi";
};
"floccus@handmadeideas.org" = {
installation_mode = "normal_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/floccus/latest.xpi";
};
"passff@invicem.pro" = {
installation_mode = "normal_installed";
install_url =
"https://addons.mozilla.org/firefox/downloads/latest/passff/latest.xpi";
};
};
FirefoxHome = {
Search = true;
TopSites = true;
SponsoredTopSites = false;
Highlights = false;
Pocket = false;
SponsoredPocket = false;
Snippets = false;
Locked = true;
};
HomePage = {
URL = "https://nixos.org";
StartPage = "homepage-locked";
};
ManagedBookmarks = [
{ toplevel_name = "Standard Bookmarks"; }
2023-10-09 08:14:22 +01:00
{
name = "NextCloud";
url = "https://cloud.xenia.me.uk/";
}
{
name = "WhatsApp Web";
url = "https://web.whatsapp.com/";
}
{
name = "Discord";
url = "https://discord.com/app";
}
{
name = "Wikis";
children = [
{
name = "NixOS Wiki";
url = "https://nixos.wiki/";
}
{
name = "Hyprland Wiki";
url = "https://wiki.hyprland.org/";
}
{
name = "Arch Wiki";
url = "https://wiki.archlinux.org/";
}
];
}
{
name = "Docs";
children = [
{
name = "NixOS and Flakes";
url = "https://nixos-and-flakes.thiscute.world/";
}
{
name = "Doom Emacs Docs";
url = "https://docs.doomemacs.org/";
}
{
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 = "Repos";
children = [
{
name = "Gitea";
url = "https://git.xenia.me.uk";
}
{
name = "GitHub";
url = "https://github.com";
}
{
name = "GitLab";
url = "https://gitlab.com";
}
{
name = "Config Repo";
url = "https://git.xenia.me.uk/xenia/nixos";
}
{
name = "Awesome Hyprland";
url = "https://github.com/hyprland-community/awesome-hyprland";
}
];
}
{
name = "Work";
children = [
{
name = "Nucleus";
url = "https://nucleus.ukaea.uk";
}
{
name = "Office365";
url = "https://www.office.com";
}
{
name = "Physics Summary";
url =
"https://users.euro-fusion.org/pages/physics-summary/LatestSession.php";
}
{
name = "Main Page";
url = "https://wiki.jetdata.eu/open/index.php?title=Main_Page";
}
];
}
];
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
PasswordManagerEnabled = false;
PopupBlocking = { Default = true; };
RequestedLocales = [ "en-GB" ];
SearchEngines = { Default = "DuckDuckGo"; };
ShowHomeButton = true;
StartDownloadsInTempDirectory = true;
};
};
}