feat: shoukei - add x64 support via binfmt

This commit is contained in:
Ryan Yin
2025-07-26 09:34:08 +08:00
parent 4bb92855e7
commit 18cabc994c
2 changed files with 9 additions and 0 deletions
@@ -23,6 +23,8 @@ in
# depending on how you configured your disk mounts, change this to /boot or /boot/efi. # depending on how you configured your disk mounts, change this to /boot or /boot/efi.
boot.loader.efi.efiSysMountPoint = "/boot"; boot.loader.efi.efiSysMountPoint = "/boot";
# Enable binfmt emulation of aarch64-linux, this is required for cross compilation.
boot.binfmt.emulatedSystems = ["x86_64-linux" "riscv64-linux"];
# supported file systems, so we can mount any removable disks with these filesystems # supported file systems, so we can mount any removable disks with these filesystems
boot.supportedFilesystems = lib.mkForce [ boot.supportedFilesystems = lib.mkForce [
"ext4" "ext4"
+7
View File
@@ -26,6 +26,13 @@
# To use chrome, we need to allow the installation of non-free software # To use chrome, we need to allow the installation of non-free software
config.allowUnfree = true; config.allowUnfree = true;
}; };
pkgs-x64 = import nixpkgs {
system = "x86_64-linux";
# To use chrome, we need to allow the installation of non-free software
config.allowUnfree = true;
};
}; };
# This is the args for all the haumea modules in this folder. # This is the args for all the haumea modules in this folder.