{ config, pkgs, lib, ... }: let cfg = config.homeModules.chromium; in lib.mkIf cfg.enable { programs.chromium = { enable = true; package = pkgs.brave; # use brave as package # List of Chromium dictionaries to install dictionaries = [ pkgs.hunspellDictsChromium.en_US pkgs.hunspellDictsChromium.de_DE ]; extensions = [ # Add Chrome extension IDs here to auto-install them # Example: "cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin ]; # Enable hardware acceleration (VAAPI, WebGL, etc.) # enableWideVine = true; commandLineArgs = [ "--enable-features=UseOzonePlatform" "--ozone-platform=wayland" "--restore-last-sesstion" # on startup restore "--safebrowsing-enable-enhanced-protection" ]; }; xdg.mimeApps.defaultApplications = { "x-scheme-handler/http" = "chromium-browser.desktop"; "x-scheme-handler/https" = "chromium-browser.desktop"; "text/html" = "chromium-browser.desktop"; }; }