2024-11-08 03:59:57 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2023-01-15 02:31:42 +00:00
|
|
|
{
|
2023-06-11 18:47:30 +00:00
|
|
|
config = lib.mkIf (config.sconfig.desktop.enable) {
|
2024-09-08 22:58:47 +00:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.brave
|
2023-06-11 18:47:30 +00:00
|
|
|
];
|
|
|
|
programs.chromium = {
|
|
|
|
enable = true;
|
|
|
|
extraOpts = {
|
|
|
|
AutofillAddressEnabled = false;
|
|
|
|
AutofillCreditCardEnabled = false;
|
|
|
|
BlockThirdPartyCookies = true;
|
|
|
|
BrowserAddPersonEnabled = false;
|
|
|
|
BrowserGuestModeEnabled = false;
|
2024-05-05 04:13:02 +00:00
|
|
|
BrowserLabsEnabled = false;
|
2023-06-11 18:47:30 +00:00
|
|
|
DefaultGeolocationSetting = 2;
|
|
|
|
DefaultNotificationsSetting = 2;
|
2024-05-05 01:47:20 +00:00
|
|
|
ExtensionInstallBlocklist = [ "*" ];
|
|
|
|
ExtensionInstallForcelist = [
|
|
|
|
"dbepggeogbaibhgnhhndojpepiihcmeb" # Vimium
|
|
|
|
"fihnjjcciajhdojfnbdddfaoknhalnja" # I don't care about cookies
|
|
|
|
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
|
|
|
|
];
|
2023-06-11 18:47:30 +00:00
|
|
|
NetworkPredictionOptions = 2;
|
|
|
|
PasswordManagerEnabled = false;
|
|
|
|
ShowFullUrlsInAddressBar = true;
|
|
|
|
SyncDisabled = true; # required for BrowsingDataLifetime
|
|
|
|
BrowsingDataLifetime = [
|
2024-11-08 03:59:57 +00:00
|
|
|
{
|
|
|
|
data_types = [ "browsing_history" ];
|
|
|
|
time_to_live_in_hours = 24 * 7;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
data_types = [ "download_history" ];
|
|
|
|
time_to_live_in_hours = 6;
|
|
|
|
}
|
2023-06-11 18:47:30 +00:00
|
|
|
];
|
|
|
|
};
|
2023-01-15 02:31:42 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|