From 3afe52a135a0ccee881e487fe3310f31ec62cf27 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 27 May 2019 16:34:38 +0200 Subject: satoshipay: Add chromium policy configuration --- modules/satoshipay.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/modules/satoshipay.nix b/modules/satoshipay.nix index 78305873..7ac6cdb1 100644 --- a/modules/satoshipay.nix +++ b/modules/satoshipay.nix @@ -16,6 +16,43 @@ nixpkgs.config.allowUnfree = true; + programs.chromium = { + enable = true; + extensions = [ + "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin + "aeblfdkhhhdcdjpifhhbdiojplfjncoa" # 1password x + ]; + homepageLocation = "about:blank"; + defaultSearchProviderSearchURL = "https://duckduckgo.com/?q={searchTerms}"; + defaultSearchProviderSuggestURL = "https://duckduckgo.com/ac/?q={searchTerms}&type=list"; + # https://www.chromium.org/administrators/policy-list-3 + extraOpts = { + BlockThirdPartyCookies = true; + CookiesBlockedForUrls = [ + "[*.]smartlock.google.com" + "[*.]mediumSmartLockSigninAllowed.com" + ]; + SyncDisabled = true; + BuiltInDnsClientEnabled = false; + BrowserSignin = 0; + EasyUnlockAllowed = false; + EnableMediaRouter = false; + CloudPrintProxyEnabled = false; + CloudPrintSubmitEnabled = false; + SafeBrowsingEnabled = false; + RestoreOnStartup = 1; # Restore last session + AlwaysOpenPdfExternally = true; + BrowserNetworkTimeQueriesEnabled = false; + NotificationsAllowedForUrls = [ + "gitlab.satoshipay.tech" + "calendar.google.com" + ]; + NotificationsBlockedForUrls = [ + "[.*]reddit.com" + ]; + }; + }; + environment.systemPackages = with pkgs; [ awscli caddy -- cgit 1.4.1