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

View File

@@ -263,6 +263,8 @@ in {
".mozilla" ".mozilla"
".config/google-chrome" ".config/google-chrome"
".cache/google-chrome" ".cache/google-chrome"
".config/chromium"
".cache/chromium"
# ====================================== # ======================================
# CLI data # CLI data