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.
This commit is contained in:
c4710n 2020-11-27 12:38:17 +08:00 committed by Robert Helgesson
parent 6dc8de259a
commit 66a68b4a58
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -53,6 +53,7 @@ let
google-chrome = "Google/Chrome"; google-chrome = "Google/Chrome";
google-chrome-beta = "Google/Chrome Beta"; google-chrome-beta = "Google/Chrome Beta";
google-chrome-dev = "Google/Chrome Dev"; google-chrome-dev = "Google/Chrome Dev";
brave = "BraveSoftware/Brave-Browser";
}; };
configDir = if pkgs.stdenv.isDarwin then configDir = if pkgs.stdenv.isDarwin then
@ -81,6 +82,7 @@ in {
browserModule pkgs.google-chrome-beta "Google Chrome Beta" false; browserModule pkgs.google-chrome-beta "Google Chrome Beta" false;
google-chrome-dev = google-chrome-dev =
browserModule pkgs.google-chrome-dev "Google Chrome Dev" false; browserModule pkgs.google-chrome-dev "Google Chrome Dev" false;
brave = browserModule pkgs.brave "Brave Browser" false;
}; };
config = mkMerge [ config = mkMerge [
@ -88,5 +90,6 @@ in {
(browserConfig config.programs.google-chrome) (browserConfig config.programs.google-chrome)
(browserConfig config.programs.google-chrome-beta) (browserConfig config.programs.google-chrome-beta)
(browserConfig config.programs.google-chrome-dev) (browserConfig config.programs.google-chrome-dev)
(browserConfig config.programs.brave)
]; ];
} }