nixos/system/firefox.nix

262 lines
7.8 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"; }
{
name = "Config Repo";
url = "https://git.xenia.me.uk/xenia/nixos";
}
2023-10-09 08:14:22 +01:00
{
name = "NextCloud";
url = "https://cloud.xenia.me.uk/";
}
{
name = "NixOS Wiki";
url = "https://nixos.wiki/";
}
{
name = "Hyprland Wiki";
url = "https://wiki.hyprland.org/";
}
{
name = "Arch Wiki";
url = "https://wiki.archlinux.org/";
}
2023-10-09 14:44:26 +01:00
{
name = "NixOS and Flakes";
url = "https://nixos-and-flakes.thiscute.world/";
}
2023-10-09 10:14:06 +01:00
{
name = "Doom Emacs Docs";
url = "https://docs.doomemacs.org/";
}
2023-10-11 06:39:16 +01:00
{
name = "Awesome Hyprland";
url = "https://github.com/hyprland-community/awesome-hyprland";
}
2023-10-09 12:23:21 +01:00
{
name = "Nerd Fonts Cheat Sheet";
url = "https://www.nerdfonts.com/cheat-sheet";
}
{
name = "Mozilla Policy Templates";
url = "https://mozilla.github.io/policy-templates/";
}
{
name = "Dev";
children = [
{
name = "Gitea";
url = "https://git.xenia.me.uk";
}
{
name = "GitHub";
url = "https://github.com";
}
{
name = "GitLab";
url = "https://gitlab.com";
}
{
name = "StackOverflow";
url = "https://stackoverflow.com";
}
{
name = "PyPI";
url = "https://pypi.org";
}
];
}
{
name = "Games";
children = [
{
name = "ProtonDB";
url = "https://www.protondb.com/";
}
{
name = "SteamDB";
url = "https://steamdb.info/";
}
{
name = "Roberts Space Industries";
url = "https://robertsspaceindustries.com/";
}
];
}
{
name = "Work";
children = [
{
name = "Nucleus";
url = "https://nucleus.ukaea.uk";
}
{
name = "JET";
url = "http://w3.jet.uk";
}
{
name = "Marval";
url = "https://marval.service.ukaea.uk/MSMSelfService/Index.aspx";
}
{
name = "U4BW";
url =
"https://ubw.unit4cloud.com/uk_aea_prod_web/Login/Login.aspx";
}
{
name = "Office365";
url = "https://www.office.com";
}
{
name = "Physics Summary";
url =
"https://users.euro-fusion.org/pages/physics-summary/LatestSession.php";
}
{
name = "JSPO";
url =
"https://www.jspo.jet.uk/pages/operations/jpecreports_2023.html";
}
{
name = "pySpec";
url = "http://heimdall003.jet.uk:3060/v1/interactive";
}
{
name = "Rosters";
children = [
{
name = "J2 Roster";
url =
"https://apps.powerapps.com/play/e/default-c6ac664b-ae27-4d5d-b4e6-bb5717196fc7/a/c403a9ad-95e0-47b7-8c82-752b22a6d6f5?tenantId=c6ac664b-ae27-4d5d-b4e6-bb5717196fc7&source=portal";
}
{
name = "KS5";
url =
"https://wiki.jetdata.eu/open/index.php?title=Ks5:roster3008";
}
];
}
{
name = "OpenWiki";
children = [
{
name = "Main Page";
url =
"https://wiki.jetdata.eu/open/index.php?title=Main_Page";
}
{
name = "KS5";
url =
"https://wiki.jetdata.eu/open/index.php?title=CXS:Topic3";
}
{
name = "KT3";
url =
"https://wiki.jetdata.eu/open/index.php?title=KT3_Journals";
}
];
}
{
name = "Mimics";
children = [
{
name = "Countdown";
url = "http://webmimic.jet.uk/mc/codas/countdown";
}
{
name = "KS5";
url = "http://webmimic.jet.uk/DG/codas/ks5.mim.html";
}
{
name = "KT3";
url = "http://webmimic.jet.uk/DG/codas/kt3spec.mim.html";
}
];
}
];
}
];
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
PasswordManagerEnabled = false;
PopupBlocking = { Default = true; };
RequestedLocales = [ "en-GB" ];
SearchEngines = { Default = "DuckDuckGo"; };
ShowHomeButton = true;
StartDownloadsInTempDirectory = true;
};
};
}