From 66a68b4a58f7c554bd7746acd51ff7cc02840b0a Mon Sep 17 00:00:00 2001 From: c4710n Date: Fri, 27 Nov 2020 12:38:17 +0800 Subject: [PATCH] chromium: add support for brave Brave Browser is a chromium-based browser, too. + it use the same web store with Chromium and Google Chrome. + the machanism of installing extensions works, and it's verified on my macOS box. --- modules/programs/chromium.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/programs/chromium.nix b/modules/programs/chromium.nix index 4e35c07b..c0017bf7 100644 --- a/modules/programs/chromium.nix +++ b/modules/programs/chromium.nix @@ -53,6 +53,7 @@ let google-chrome = "Google/Chrome"; google-chrome-beta = "Google/Chrome Beta"; google-chrome-dev = "Google/Chrome Dev"; + brave = "BraveSoftware/Brave-Browser"; }; configDir = if pkgs.stdenv.isDarwin then @@ -81,6 +82,7 @@ in { browserModule pkgs.google-chrome-beta "Google Chrome Beta" false; google-chrome-dev = browserModule pkgs.google-chrome-dev "Google Chrome Dev" false; + brave = browserModule pkgs.brave "Brave Browser" false; }; config = mkMerge [ @@ -88,5 +90,6 @@ in { (browserConfig config.programs.google-chrome) (browserConfig config.programs.google-chrome-beta) (browserConfig config.programs.google-chrome-dev) + (browserConfig config.programs.brave) ]; }