From b10b059d1f126bd0b8949e0fe921e1f24731b201 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 16 Sep 2026 18:38:52 +0800 Subject: [PATCH] chore: add microsoft-edge, chromium and brave-origin Install microsoft-edge on x86_64 Linux via Home Manager and on macOS via a brew cask. Enable the chromium and brave-origin Home Manager options alongside google-chrome, dropping the google-chrome aarch64 fallback to chromium since google-chrome supports aarch64-linux. Persist the Brave Origin and microsoft-edge profile directories on the ephemeral-root hosts. --- home/linux/gui/base/browsers.nix | 13 +++++++++---- hosts/idols-ai/preservation.nix | 2 ++ modules/darwin/apps.nix | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/home/linux/gui/base/browsers.nix b/home/linux/gui/base/browsers.nix index a12e5a8a..ef783dfa 100644 --- a/home/linux/gui/base/browsers.nix +++ b/home/linux/gui/base/browsers.nix @@ -8,8 +8,13 @@ ]; # source code: https://github.com/nix-community/home-manager/blob/master/modules/programs/chromium.nix - programs.google-chrome = { - enable = true; - package = if pkgs.stdenv.hostPlatform.isAarch64 then pkgs.chromium else pkgs.google-chrome; - }; + + # open-source upstream Chromium, the base for all the browsers below + programs.chromium.enable = true; + # the world's most widely used browser, with deep Google account and services integration + programs.google-chrome.enable = true; + # Brave's privacy-first build (Shields ad/tracker blocking), minus the crypto/AI extras + programs.brave-origin.enable = true; + # Microsoft's browser, with built-in phishing/malware protection, x86_64 build only + programs.microsoft-edge.enable = pkgs.stdenv.hostPlatform.isx86_64; } diff --git a/hosts/idols-ai/preservation.nix b/hosts/idols-ai/preservation.nix index 840edca8..093ba013 100644 --- a/hosts/idols-ai/preservation.nix +++ b/hosts/idols-ai/preservation.nix @@ -294,6 +294,8 @@ in ".mozilla" ".config/google-chrome" ".config/chromium" + ".config/BraveSoftware/Brave-Origin" + ".config/microsoft-edge" # ====================================== # CLI data diff --git a/modules/darwin/apps.nix b/modules/darwin/apps.nix index c6105300..cd266623 100644 --- a/modules/darwin/apps.nix +++ b/modules/darwin/apps.nix @@ -145,6 +145,7 @@ in "squirrel-app" # input method for Chinese, rime-squirrel "firefox" "google-chrome" + "microsoft-edge" "ghostty" # terminal emulator