2024-04-08 14:25:04 +01:00
|
|
|
{pkgs, ...}: {
|
2023-10-06 13:56:11 +01:00
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
2024-01-30 14:21:50 +00:00
|
|
|
languagePacks = ["en-GB"];
|
2023-10-06 13:56:11 +01:00
|
|
|
policies = {
|
2024-02-07 07:14:12 +00:00
|
|
|
BlockAboutProfiles = true;
|
|
|
|
Containers = {
|
|
|
|
Default = [
|
|
|
|
{
|
|
|
|
name = "Personal";
|
|
|
|
icon = "fingerprint";
|
|
|
|
color = "purple";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "Work";
|
|
|
|
icon = "briefcase";
|
|
|
|
color = "blue";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-12-08 15:16:40 +00:00
|
|
|
Cookies = {
|
|
|
|
Behavior = "reject-tracker-and-partition-foreign";
|
2024-02-07 07:14:12 +00:00
|
|
|
BehaviorPrivateBrowsing = "reject";
|
2023-12-08 15:16:40 +00:00
|
|
|
Locked = true;
|
|
|
|
};
|
2024-02-07 07:14:12 +00:00
|
|
|
DefaultDownloadDirectory = "\${home}/Downloads";
|
2023-10-06 13:56:11 +01:00
|
|
|
DisableAppUpdate = true;
|
|
|
|
DisableFirefoxAccounts = true;
|
2024-02-07 07:14:12 +00:00
|
|
|
DisableFirefoxScreenshots = true;
|
2023-10-06 13:56:11 +01:00
|
|
|
DisableFirefoxStudies = true;
|
2024-02-07 07:14:12 +00:00
|
|
|
DisableFormHistory = true;
|
|
|
|
DisablePocket = true;
|
2023-10-06 13:56:11 +01:00
|
|
|
DisableProfileImport = true;
|
|
|
|
DisableSetDesktopBackground = true;
|
|
|
|
DisableSystemAddonUpdate = true;
|
|
|
|
DisableTelemetry = true;
|
2024-04-04 13:36:21 +01:00
|
|
|
DisplayBookmarksToolbar = "never";
|
2023-10-06 13:56:11 +01:00
|
|
|
DisplayMenuBar = "default-off";
|
2024-02-07 07:14:12 +00:00
|
|
|
DontCheckDefaultBrowser = true;
|
2023-10-06 13:56:11 +01:00
|
|
|
EnableTrackingProtection = {
|
|
|
|
Value = true;
|
2024-02-07 07:14:12 +00:00
|
|
|
Locked = true;
|
2023-10-06 13:56:11 +01:00
|
|
|
Cryptomining = true;
|
|
|
|
Fingerprinting = true;
|
|
|
|
};
|
|
|
|
ExtensionSettings = {
|
|
|
|
"queryamoid@kaply.com" = {
|
|
|
|
installation_mode = "force_installed";
|
2024-01-30 14:21:50 +00:00
|
|
|
install_url = "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
|
2023-10-06 13:56:11 +01:00
|
|
|
};
|
2023-10-22 13:39:25 +01:00
|
|
|
"uBlock0@raymondhill.net" = {
|
|
|
|
installation_mode = "force_installed";
|
2024-01-30 14:21:50 +00:00
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
2023-10-22 13:39:25 +01:00
|
|
|
};
|
2024-04-04 13:37:28 +01:00
|
|
|
"addon@simplelogin" = {
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/simplelogin/latest.xpi";
|
|
|
|
};
|
2024-02-29 15:55:41 +00:00
|
|
|
"{8446b178-c865-4f5c-8ccc-1d7887811ae3}" = {
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/catppuccin-mocha-lavender-git/latest.xpi";
|
|
|
|
};
|
2023-10-06 13:56:11 +01:00
|
|
|
};
|
|
|
|
FirefoxHome = {
|
|
|
|
Search = true;
|
2024-02-07 07:14:12 +00:00
|
|
|
TopSites = false;
|
2023-10-06 13:56:11 +01:00
|
|
|
SponsoredTopSites = false;
|
|
|
|
Highlights = false;
|
|
|
|
Pocket = false;
|
|
|
|
SponsoredPocket = false;
|
|
|
|
Snippets = false;
|
|
|
|
Locked = true;
|
|
|
|
};
|
2024-02-07 07:14:12 +00:00
|
|
|
FirefoxSuggest = {
|
|
|
|
WebSuggestions = false;
|
|
|
|
SponsoredSuggestions = false;
|
|
|
|
ImproveSuggest = false;
|
|
|
|
Locked = true;
|
|
|
|
};
|
|
|
|
HardwareAcceleration = true;
|
|
|
|
Homepage = {
|
|
|
|
Locked = true;
|
2024-04-08 14:25:04 +01:00
|
|
|
StartPage = "homepage-locked";
|
2024-04-08 17:43:11 +01:00
|
|
|
URL = "file://${(pkgs.callPackage ./bookmarks/default.nix {})}/bookmarks.html";
|
2024-02-07 07:14:12 +00:00
|
|
|
};
|
2024-04-08 14:25:04 +01:00
|
|
|
NewTabPage = true;
|
2023-10-06 13:56:11 +01:00
|
|
|
NoDefaultBookmarks = true;
|
|
|
|
OfferToSaveLogins = false;
|
|
|
|
PasswordManagerEnabled = false;
|
2024-02-07 07:14:12 +00:00
|
|
|
PDFjs = {Enabled = false;};
|
|
|
|
Permissions = {
|
|
|
|
Autoplay = {
|
|
|
|
Default = "block-audio-video";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
PictureInPicture = {Enabled = true;};
|
2024-01-30 14:21:50 +00:00
|
|
|
PopupBlocking = {Default = true;};
|
2024-02-07 07:27:46 +00:00
|
|
|
Preferences = {
|
|
|
|
"browser.bookmarks.addedImportButton" = false;
|
|
|
|
"browser.bookmarks.showMobileBookmarks" = false;
|
|
|
|
"browser.newtabpage.pinned" = [
|
|
|
|
{
|
|
|
|
title = "NixOS Wiki";
|
2024-04-09 14:21:00 +01:00
|
|
|
url = "https://wiki.nixos.org";
|
2024-02-07 07:27:46 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
title = "Arch Wiki";
|
|
|
|
url = "https://wiki.archlinux.org";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
title = "Hyprland Wiki";
|
|
|
|
url = "https://wiki.hyprland.org";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
"browser.search.region" = "GB";
|
|
|
|
"browser.warnOnQuitShortcut" = false;
|
2024-02-08 19:05:27 +00:00
|
|
|
"extensions.activeThemeID" = "{c6698fd1-fe9b-4eae-95d5-fe1703820469}";
|
2024-02-07 07:27:46 +00:00
|
|
|
"intl.accept_languages" = "en-gb,en";
|
|
|
|
"intl.locale.requested" = "en-gb,en";
|
|
|
|
"intl.regional_prefs.use_os_locales" = false;
|
|
|
|
"media.eme.enabled" = true;
|
|
|
|
};
|
2024-01-30 14:21:50 +00:00
|
|
|
RequestedLocales = ["en-GB"];
|
2024-02-07 07:14:12 +00:00
|
|
|
SearchBar = "unified";
|
2024-02-07 07:42:56 +00:00
|
|
|
ShowHomeButton = true;
|
2023-10-06 13:56:11 +01:00
|
|
|
StartDownloadsInTempDirectory = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|