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, ... }:
{
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;
NetworkPredictionOptions = 2;
PasswordManagerEnabled = false;
ShowFullUrlsInAddressBar = true;
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; }
];
config = lib.mkIf (config.sconfig.desktop.enable) {
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;
NetworkPredictionOptions = 2;
PasswordManagerEnabled = false;
ShowFullUrlsInAddressBar = true;
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; }
];
};
};
};
}