remove chromium from servers

This commit is contained in:
Sean Buckley 2023-06-11 14:47:30 -04:00
parent 034439608e
commit 8cbcf3cc19

View file

@ -1,27 +1,29 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
nixpkgs.config.chromium.commandLineArgs = toString [ config = lib.mkIf (config.sconfig.desktop.enable) {
"--enable-features=WebUIDarkMode" nixpkgs.config.chromium.commandLineArgs = toString [
"--force-dark-mode" "--enable-features=WebUIDarkMode"
]; "--force-dark-mode"
programs.chromium = { ];
enable = true; programs.chromium = {
extraOpts = { enable = true;
AutofillAddressEnabled = false; extraOpts = {
AutofillCreditCardEnabled = false; AutofillAddressEnabled = false;
BlockThirdPartyCookies = true; AutofillCreditCardEnabled = false;
BrowserAddPersonEnabled = false; BlockThirdPartyCookies = true;
BrowserGuestModeEnabled = false; BrowserAddPersonEnabled = false;
DefaultGeolocationSetting = 2; BrowserGuestModeEnabled = false;
DefaultNotificationsSetting = 2; DefaultGeolocationSetting = 2;
NetworkPredictionOptions = 2; DefaultNotificationsSetting = 2;
PasswordManagerEnabled = false; NetworkPredictionOptions = 2;
ShowFullUrlsInAddressBar = true; PasswordManagerEnabled = false;
SyncDisabled = true; # required for BrowsingDataLifetime ShowFullUrlsInAddressBar = true;
BrowsingDataLifetime = [ SyncDisabled = true; # required for BrowsingDataLifetime
{ data_types = [ "browsing_history" ]; time_to_live_in_hours = 24 * 7; } BrowsingDataLifetime = [
{ data_types = [ "download_history" ]; time_to_live_in_hours = 6; } { data_types = [ "browsing_history" ]; time_to_live_in_hours = 24 * 7; }
]; { data_types = [ "download_history" ]; time_to_live_in_hours = 6; }
];
};
}; };
}; };
} }