diff options
| author | Grisha Shipunov | 2025-08-15 18:34:37 +0200 |
|---|---|---|
| committer | Grisha Shipunov | 2025-08-15 18:35:18 +0200 |
| commit | f35599a59a080f0e7a173e21cae3d51dc230a212 (patch) | |
| tree | 1b1b9f91f754b24602d6649df80d002cbb6d11f2 /modules/chromium.nix | |
| parent | 963dbeb3685326d1420aadd6345db1902e8fc1f2 (diff) | |
Revert "retire toaster"
This reverts commit 1baa256be04a8b4e711a7d48a76197b5ffad6637.
Diffstat (limited to 'modules/chromium.nix')
| -rw-r--r-- | modules/chromium.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/chromium.nix b/modules/chromium.nix new file mode 100644 index 0000000..4cdf16a --- /dev/null +++ b/modules/chromium.nix @@ -0,0 +1,40 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + (chromium.override { enableWideVine = true; }) + ]; + + nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization,WebUIDarkMode"; + + programs.chromium = { + enable = true; + extensions = [ + "ekhagklcjbdpajgpjgmbionohlpdbjgc" # zotero connector + "nngceckbapebfimnlniiiahkandclblb" # bitwarden + "ddkjiahejlhfcafbddmgiahcphecmpfh" # ublock lite + "mnjggcdmjocbbbhaepdhchncahnbgone" # sponsorblock + "khncfooichmfjbepaaaebmommgaepoid" # unhook + ]; + 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; + "BlockThirdPartyCookies" = true; + "PrivacySandboxAdMeasurementEnabled" = false; + "PrivacySandboxAdTopicsEnabled" = false; + "PrivacySandboxPromptEnabled" = false; + "PrivacySandboxSiteEnabledAdsEnabled" = false; + }; + }; +} |
