From 7549ce0707ac1303b92fffa5cdfc81de78fd2405 Mon Sep 17 00:00:00 2001 From: Yureka Date: Fri, 22 Oct 2021 21:56:03 +0200 Subject: [PATCH] add some chromium policies --- hosts/nuc/desktop.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/hosts/nuc/desktop.nix b/hosts/nuc/desktop.nix index e539927..f11fb04 100644 --- a/hosts/nuc/desktop.nix +++ b/hosts/nuc/desktop.nix @@ -22,4 +22,32 @@ desktopManager.mate.enable = true; }; + + programs.chromium = { + enable = true; + extensions = [ + "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin + ]; + extraOpts = { + DefaultSearchProviderEnabled = true; + DefaultSearchProviderName = "DuckDuckGo"; + DefaultSearchProviderIconURL = "https://duckduckgo.com/favicon.ico"; + DefaultSearchProviderSearchURL = "https://duckduckgo.com/?q={searchTerms}"; + DefaultSearchProviderSuggestURL = "https://duckduckgo.com/ac/?q={searchTerms}&type=list"; + + DefaultBrowserSettingEnabled = false; + BlockThirdPartyCookies = true; + + BrowserSignin = 0; + SyncDisabled = true; + PasswordManagerEnabled = false; + + # Send less data to Google + SafeBrowsingProtectionLevel = 0; + UrlKeyedAnonymizedDataCollectionEnabled = false; + SafeBrowsingExtendedReportingEnabled = false; + SpellCheckServiceEnabled = false; + AdvancedProtectionAllowed = false; + }; + }; }