mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
37 lines
1.3 KiB
Nix
37 lines
1.3 KiB
Nix
{ config, lib, ... }:
|
|
{
|
|
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;
|
|
BrowserLabsEnabled = false;
|
|
DefaultGeolocationSetting = 2;
|
|
DefaultNotificationsSetting = 2;
|
|
ExtensionInstallBlocklist = [ "*" ];
|
|
ExtensionInstallForcelist = [
|
|
"dbepggeogbaibhgnhhndojpepiihcmeb" # Vimium
|
|
"fihnjjcciajhdojfnbdddfaoknhalnja" # I don't care about cookies
|
|
"jeoacafpbcihiomhlakheieifhpjdfeo" # Disconnect
|
|
"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; }
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|