From 849e957bb7295da0158364fc93900c60422ea854 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sat, 14 Jan 2023 21:31:42 -0500 Subject: [PATCH] add chromium policy --- modules/chromium.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/chromium.nix diff --git a/modules/chromium.nix b/modules/chromium.nix new file mode 100644 index 0000000..b800a1b --- /dev/null +++ b/modules/chromium.nix @@ -0,0 +1,25 @@ +{ config, pkgs, lib, ... }: +{ + nixpkgs.config.chromium.commandLineArgs = toString [ + "--enable-features=WebUIDarkMode" + "--force-dark-mode" + ]; + programs.chromium = { + enable = true; + extraOpts = { + AutofillAddressEnabled = false; + AutofillCreditCardEnabled = false; + BlockThirdPartyCookies = true; + BrowserAddPersonEnabled = false; + BrowserGuestModeEnabled = false; + DefaultGeolocationSetting = 2; + DefaultNotificationsSetting = 2; + PasswordManagerEnabled = false; + SyncDisabled = true; # required for BrowsingDataLifetime + BrowsingDataLifetime = [ + { data_types = [ "browsing_history" ]; time_to_live_in_hours = 24 * 7; } + { data_types = [ "download_history" ]; time_to_live_in_hours = 6; } + ]; + }; + }; +}