nixos-config/modules/desktop/chromium.nix
2024-09-08 18:58:47 -04:00

35 lines
1.2 KiB
Nix

{ config, lib, pkgs, ... }:
{
config = lib.mkIf (config.sconfig.desktop.enable) {
environment.systemPackages = [
pkgs.brave
];
programs.chromium = {
enable = true;
extraOpts = {
AutofillAddressEnabled = false;
AutofillCreditCardEnabled = false;
BlockThirdPartyCookies = true;
BrowserAddPersonEnabled = false;
BrowserGuestModeEnabled = false;
BrowserLabsEnabled = false;
DefaultGeolocationSetting = 2;
DefaultNotificationsSetting = 2;
ExtensionInstallBlocklist = [ "*" ];
ExtensionInstallForcelist = [
"dbepggeogbaibhgnhhndojpepiihcmeb" # Vimium
"fihnjjcciajhdojfnbdddfaoknhalnja" # I don't care about cookies
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
];
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; }
];
};
};
};
}