From 38e265386697135bd4a5b31abea95878e95f64f1 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 23 Jul 2019 19:06:59 +0000 Subject: [PATCH] Update chromium settings --- desktop.nix | 37 ++++++++++++++++++++++++++++++++++++- etc/dunstrc | 4 ++++ packages.nix | 6 ++++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/desktop.nix b/desktop.nix index 1c3a462..eddeaa8 100644 --- a/desktop.nix +++ b/desktop.nix @@ -98,11 +98,46 @@ in { extensions = [ "cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin "gcbommkclmclpchllfjekcdonpmejbdp" # HTTPS Everywhere - "pkehgijcmpdhfbdbbnkijodmdjhbjlgp" # Privacy Badger "dbepggeogbaibhgnhhndojpepiihcmeb" # Vimium "aapbdbdomjkkjkaonfhkkikfgjllcleb" # Google Translate "naepdomgkenhinolocfifgehidddafch" # Browserpass ]; + extraOpts = { + DefaultBrowserSettingEnabled = true; + + TranslateEnabled = false; + SpellcheckEnabled = false; + SpellCheckServiceEnabled = false; + PrintingEnabled = false; + SearchSuggestEnabled = false; + PasswordManagerEnabled = false; + SafeBrowsingEnabled = false; + AutofillAddressEnabled = false; + AutofillCreditCardEnabled = false; + + SyncDisabled = true; + BlockThirdPartyCookies = true; + + SigninAllowed = false; + AudioCaptureAllowed = false; + VideoCaptureAllowed = false; + SSLErrorOverrideAllowed = false; + AutoplayAllowed = false; + + # 0 = Disable browser sign-in + BrowserSignin = 0; + + DefaultSearchProviderEnabled = true; + DefaultSearchProviderSearchURL = "https://duckduckgo.com/" + + "?kae=d&k1=-1&kc=1&kav=1&kd=-1&kh=1&q={searchTerms}"; + + # Do not allow any site to show desktop notifications + DefaultNotificationsSetting = 2; + # Do not allow any site to track the users' physical location + DefaultGeolocationSetting = 2; + # Block the Flash plugin + DefaultPluginsSetting = 2; + }; }; networking.localCommands = '' diff --git a/etc/dunstrc b/etc/dunstrc index f605864..8ad038a 100644 --- a/etc/dunstrc +++ b/etc/dunstrc @@ -1,2 +1,6 @@ [global] font = Ubuntu Mono 40 + +[ignore] +summary = "browserpass: Install native host app" +format = "" \ No newline at end of file diff --git a/packages.nix b/packages.nix index aa5d75b..6b9e74b 100644 --- a/packages.nix +++ b/packages.nix @@ -163,5 +163,11 @@ in { (writeShellScriptBin "torbrowser" "${unstable.tor-browser-unwrapped}/bin/firefox") (writeShellScriptBin "git-get" "${git}/bin/git clone https://$1 $GOPATH/src/$1") + + (writeShellScriptBin "chromium" '' + ${unstable.chromium}/bin/chromium --force-dark-mode \ + --start-maximized \ + $@ + '') ]; }