diff options
| author | Grisha Shipunov | 2024-12-31 13:52:57 +0000 |
|---|---|---|
| committer | Grisha Shipunov | 2024-12-31 13:52:57 +0000 |
| commit | 50066a4d208b83e63d5ebb4bc64e740e78deae59 (patch) | |
| tree | b09004fb2121e2ffb4d46bb45ff65b024749d7e2 /modules/chromium.nix | |
| parent | 677abb734403d4f412dbbdc83f372cc606d9d519 (diff) | |
revert toaster
Diffstat (limited to 'modules/chromium.nix')
| -rw-r--r-- | modules/chromium.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/chromium.nix b/modules/chromium.nix new file mode 100644 index 0000000..4a0f453 --- /dev/null +++ b/modules/chromium.nix @@ -0,0 +1,34 @@ +{ config, pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + chromium + ]; + + nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --force-dark-mode --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --enable-native-gpu-memory-buffers --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization,WebUIDarkMode"; + + programs.chromium = { + enable = true; + extensions = [ + "pkehgijcmpdhfbdbbnkijodmdjhbjlgp" # privacy badger + "ekhagklcjbdpajgpjgmbionohlpdbjgc" # zotero connector + "nngceckbapebfimnlniiiahkandclblb" # bitwarden + "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin + ]; + extraOpts = { + "BrowserSignin" = 0; + "SyncDisabled" = true; + "PasswordManagerEnabled" = false; + "TranslateEnabled" = false; + "AutofillAddressEnabled" = false; + "AutofillCreditCardEnabled" = false; + "AutoplayAllowed" = false; + "DefaultNotificationSetting" = 2; + "BackgroundModeEnabled" = false; + # "DefaultSearchProviderEnabled" = true; + # "DefaultSearchProviderSearchURL" = "https://google.com/search?q={searchTerms}"; + # "DefaultSearchProviderSearchURL" = "https://duckduckgo.com/?q={searchTerms}"; + "SearchSuggestEnable" = false; + }; + }; +} |
