mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
add chromium policy
This commit is contained in:
parent
0e244796eb
commit
849e957bb7
1 changed files with 25 additions and 0 deletions
25
modules/chromium.nix
Normal file
25
modules/chromium.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ 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;
|
||||||
|
PasswordManagerEnabled = false;
|
||||||
|
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; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue