diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-08-25 00:32:18 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-08-25 00:32:18 +0530 |
| commit | d1c6524ad7f1a805b2a2b0394df2b8cbb286d3e8 (patch) | |
| tree | 0d5fc436e42f104f8c758efd1ad2d0a38b46e78d /modules/firefox.home/policies.nix | |
| parent | db667b17820599d850d22d6d9345fb507d399a0d (diff) | |
| download | nixos-config-d1c6524ad7f1a805b2a2b0394df2b8cbb286d3e8.tar.gz nixos-config-d1c6524ad7f1a805b2a2b0394df2b8cbb286d3e8.zip | |
Refactor firefox config
Diffstat (limited to '')
| -rw-r--r-- | modules/firefox.home/policies.nix | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/modules/firefox.home/policies.nix b/modules/firefox.home/policies.nix new file mode 100644 index 0000000..f18f3c8 --- /dev/null +++ b/modules/firefox.home/policies.nix @@ -0,0 +1,78 @@ +# https://mozilla.github.io/policy-templates +{ config }: { + policies = { + ManagedBookmarks = [ + { toplevel_name = "Managed bookmarks"; } + { name = "Daily Dev"; url = "https://app.daily.dev"; } + { name = "Email: Microsoft Outlook"; url = "https://outlook.office365.com/mail/"; } + { name = "Email: GMail"; url = "https://mail.google.com/mail/u/0/"; } + # { name = "Shtuff"; children = [] } + ]; + DisplayBookmarksToolbar = "never"; + NoDefaultBookmarks = true; + + DefaultDownloadDirectory = "${config.home.homeDirectory}/Downloads/firefox"; + DisableAccounts = true; + DisableAppUpdate = true; + DisableFeedbackCommands = true; + DisableFirefoxStudies = true; + DisablePocket = true; + DisableProfileImport = true; + DisableSystemAddonUpdate = true; + DisableTelemetry = true; + DontCheckDefaultBrowser = true; + Homepage = { StartPage = "previous-session"; }; + NewTabPage = false; + OfferToSaveLogins = false; + OverrideFirstRunPage = ""; + PasswordManagerEnabled = false; + DisableSetDesktopBackground = true; + UserMessaging = { + ExtensionRecommendations = false; + SkipOnboarding = true; + }; + ShowHomeButton = false; + + # PopupBlocking = []; + SearchEngines = { + Default = "DuckDuckGo lite"; + SearchSuggestEnabled = false; + Remove = [ "Google" "Bing" "Amazon.com" "eBay" "Wikipedia" ]; + PreventInstalls = false; + Add = [ + { + Name = "DuckDuckGo lite"; + URLTemplate = "https://duckduckgo.com/lite/?q={searchTerms}"; + Alias = "ddg"; + } + { + Name = "DuckDuckGo regular"; + URLTemplate = "https://duckduckgo.com/?q={searchTerms}"; + Alias = "ddgr"; + } + { + Name = "Google Sucks"; + URLTemplate = "https://google.com/?q={searchTerms}"; + Alias = "google"; + } + ]; + }; + + Extensions = { + Uninstall = [ + "google@search.mozilla.org" + "bing@search.mozilla.org" + "amazondotcom@search.mozilla.org" + "ebay@search.mozilla.org" + "wikipedia@search.mozilla.org" + ]; + }; + ExtensionSettings = { + "google@search.mozilla.org".installation_mode = "blocked"; + "bing@search.mozilla.org".installation_mode = "blocked"; + "amazondotcom@search.mozilla.org".installation_mode = "blocked"; + "ebay@search.mozilla.org".installation_mode = "blocked"; + "wikipedia@search.mozilla.org".installation_mode = "blocked"; + }; + }; +} |
