nixos/system/chromium.nix

40 lines
1.2 KiB
Nix

{pkgs, ...}: {
environment.systemPackages = [pkgs.chromium];
programs.chromium = rec {
enable = true;
defaultSearchProviderEnabled = true;
defaultSearchProviderSearchURL = "https://duckduckgo.com/?q={searchTerms}";
defaultSearchProviderSuggestURL = defaultSearchProviderSearchURL;
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
];
extraOpts = {
"BrowserSignin" = 0;
"ClearBrowsingDataOnExitList" = [
"browsing_history"
"download_history"
"cookies_and_other_site_data"
"cached_images_and_files"
"password_signin"
"autofill"
# "site_settings"
# "hosted_app_data"
];
"DefaultBrowserSettingEnabled" = false;
"DeviceAutoUpdateDisabled" = true;
"SyncDisabled" = true;
"PasswordManagerEnabled" = false;
"SpellcheckEnabled" = true;
"SpellcheckLanguage" = ["en-GB"];
"AllowDinosaurEasterEgg" = true;
"AllowSystemNotifications" = true;
"AutoFillEnabled" = false;
"BrowserLabsEnabled" = false;
"BookmarkBarEnabled" = false;
"ShowHomeButton" = false;
"HomepageIsNewTabPage" = false;
"RestoreOnStartup" = 5;
};
};
}