diff --git a/home/nix/programs/firefox.nix b/home/nix/programs/firefox.nix index 8d5923e..40a0bcf 100644 --- a/home/nix/programs/firefox.nix +++ b/home/nix/programs/firefox.nix @@ -19,6 +19,7 @@ Locked = true; Cryptomining = true; Fingerprinting = true; + EmailTracking = true; }; # Certificates @@ -29,6 +30,7 @@ # Cookies Cookies = { Behavior = "reject-foreign"; + BehaviorPrivateBrowsing = "reject-foreign"; Locked = true; }; @@ -44,7 +46,7 @@ DisableFirefoxAccounts = true; DisableFirefoxScreenshots = true; DisableFirefoxStudies = true; - DisablePoket = true; + DisablePocket = true; DisableTelemetry = true; AutofillAddressEnabled = false; AutofillCreditCardEnabled = false; @@ -57,13 +59,14 @@ UrlbarInterventions = false; SkipOnboarding = true; MoreFromMozilla = false; + Labs = false; Locked = true; }; # Disable Password Manager PasswordManagerEnabled = false; + PrimaryPassword = false; OfferToSaveLogins = false; - OfferToSaveLoginsDefault = false; # Remove Special Pages OverrideFirstRunPage = ""; @@ -88,6 +91,7 @@ }; # Search Suggestions + SearchSuggestEnabled = true; FirefoxSuggest = { WebSuggestions = false; SponsoredSuggestions = false; @@ -107,14 +111,36 @@ Locked = true; }; - # Miscellaneous + # Popups + PopupBlocking = { + Default = true; + Locked = true; + }; + + # Allow Bypasses + DisableSecurityBypass = { + InvalidCertificate = false; + SafeBrowsing = false; + }; + + # PictureInPicure + PictureInPicture = { + Enabled = true; + Locked = true; + }; + + # Topbar SearchBar = "unified"; DisplayMenuBar = "default-off"; DisplayBookmarksToolbar = "newtab"; NoDefaultBookmarks = true; + + # Miscellaneous + HttpsOnlyMode = "force_enabled"; HardwareAcceleration = true; DontCheckDefaultBrowser = true; PromptForDownloadLocation = false; + PrivateBrowsingModeAvailability = 0; # Extensions ExtensionSettings = { @@ -135,10 +161,39 @@ Preferences = { # theme "toolkit.legacyUserProfileCustomizations.stylesheets" = lock-true; - "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; + "extensions.activeThemeID" = { + Value = "firefox-compact-dark@mozilla.org"; + Status = "locked"; + }; + # homepage + "browser.startup.homepage" = { + Value = " about:home"; + Status = "locked"; + }; + "browser.newtabpage.enabed" = lock-true; + "browser.newtabpage.url" = { + Value = " about:home"; + Status = "locked"; + }; + # search enable + "browser.urlbar.suggest.recentsearches" = lock-true; + "browser.urlbar.suggest.bookmark" = lock-true; + "browser.urlbar.suggest.clipboard" = lock-true; + "browser.urlbar.suggest.history" = lock-true; + # search disable + "browser.urlbar.suggest.addons" = lock-false; + "browser.urlbar.suggest.calculator" = lock-false; + "browser.urlbar.suggest.engines" = lock-false; + "browser.urlbar.suggest.fakespot" = lock-false; + "browser.urlbar.suggest.mdn" = lock-false; + "browser.urlbar.suggest.openpage" = lock-false; + "browser.urlbar.suggest.pocket" = lock-false; + "browser.urlbar.suggest.remotetab" = lock-false; + "browser.urlbar.suggest.topsites" = lock-false; + "browser.urlbar.suggest.trending" = lock-false; + "browser.urlbar.suggest.weather" = lock-false; + "browser.urlbar.suggest.yelp" = lock-false; # privacy - "privacy.donottrack.enabled" = lock-true; - "privacy.fingerprintingProtection" = lock-false; "privacy.globalprivacycontrol.enabled" = lock-true; # security "security.OCSP.enabled" = { @@ -150,10 +205,13 @@ Status = "locked"; }; # graphics - "webgl.disable" = lock-false; "dom.webgpu.enabled" = lock-true; "media.eme.enabled" = lock-true; # tabs + "browser.tabs.inTitlebar" = { + Value = 1; + Status = "locked"; + }; "browser.tabs.warnOnClose" = lock-true; "browser.tabs.firefox-view" = lock-false; # user messaging @@ -166,6 +224,40 @@ "browser.newtabpage.activity-stream.showSponsored" = lock-false; "browser.newtabpage.activity-stream.system.showSponsored" = lock-false; "browser.newtabpage.activity-stream.showSponsoredTopSites" = lock-false; + # safebrowsing + "browser.safebrowsing.malware.enabled" = lock-true; + "browser.safebrowsing.phishing.enabled" = lock-true; + "browser.safebrowsing.downloads.enabled" = lock-true; + "browser.safebrowsing.downloads.remote.block_uncommon" = lock-false; + "browser.safebrowsing.downloads.remote.block_potentially_unwanted" = lock-false; + # misc + "general.autoScroll" = lock-false; + "general.smoothScroll" = lock-true; + "widget.gtk.overlay-scrollbars.enabled" = lock-false; + "accessibility.browsewithcaret" = lock-false; + "accessibility.typeaheadfind" = lock-false; + "media.hardwaremediakeys.enabled" = lock-true; + "browser.crashReports.unsubmittedCheck.autoSubmit2" = lock-false; + }; + }; + + profiles = { + "freya" = { + search = { + force = true; + default = "DuckDuckGo"; + }; + userChrome = '' + #firefox-view-button { + visibility: collapse; + } + #alltabs-button { + visibility: collapse; + } + #tabbrowser-tabs { + border-inline-start: none !important; + } + ''; }; }; };