system: only emulate aarch64-linux if x86_64-linux

This commit is contained in:
Donovan Glover 2024-10-10 14:24:05 -04:00
parent 60401813e6
commit 8e3a8568e3
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -87,7 +87,7 @@ in
boot = {
tmp = if iHaveLotsOfRam then { useTmpfs = true; } else { cleanOnBoot = true; };
binfmt.emulatedSystems = [ "aarch64-linux" ];
binfmt.emulatedSystems = mkIf (pkgs.system == "x86_64-linux") [ "aarch64-linux" ];
loader = {
systemd-boot = mkIf (!isPhone) {