From 1a474ec960a60d9afb55450bdce08f6d0bf5b574 Mon Sep 17 00:00:00 2001 From: ryan4yin Date: Fri, 2 Jun 2023 13:14:17 +0800 Subject: [PATCH] feat: enable binfmt emulation of aarch64-linux for nixos-test --- hosts/msi-rtx4090/default.nix | 2 -- hosts/nixos-test/default.nix | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/hosts/msi-rtx4090/default.nix b/hosts/msi-rtx4090/default.nix index a79b5f42..c0a2c545 100644 --- a/hosts/msi-rtx4090/default.nix +++ b/hosts/msi-rtx4090/default.nix @@ -107,5 +107,3 @@ system.stateVersion = "22.11"; # Did you read the comment? } - - diff --git a/hosts/nixos-test/default.nix b/hosts/nixos-test/default.nix index 6870ed41..6cfb6162 100644 --- a/hosts/nixos-test/default.nix +++ b/hosts/nixos-test/default.nix @@ -23,6 +23,20 @@ nixpkgs.overlays = import ../../overlays args; + + # Enable binfmt emulation of aarch64-linux, this is required for cross compilation. + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + # supported fil systems, so we can mount any removable disks with these filesystems + boot.supportedFilesystems = [ + "ext4" + "btrfs" + "xfs" + #"zfs" + "ntfs" + "fat" "vfat" "exfat" + "cifs" # mount windows share + ]; + # Bootloader. boot.loader = { grub = {