feat: use chromium on aarch64-linux

This commit is contained in:
Ryan Yin
2025-07-25 13:53:19 +08:00
parent e226d4b28f
commit 70154b0652
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
{
pkgs,
pkgs-stable,
...
}: {
home.packages = with pkgs; [
@@ -12,8 +11,8 @@
programs = {
# source code: https://github.com/nix-community/home-manager/blob/master/modules/programs/chromium.nix
google-chrome = {
enable = pkgs.stdenv.isx86_64;
package = pkgs-stable.google-chrome;
enable = true;
package = if pkgs.stdenv.isAarch64 then pkgs.chromium else pkgs.google-chrome;
# https://wiki.archlinux.org/title/Chromium#Native_Wayland_support
commandLineArgs = [