From c5090d69a21705d40a2d4c48056cc4aefe000a74 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 18 Oct 2024 09:12:37 -0500 Subject: [PATCH] Enable aarch emulation on Exodus --- hosts/exodus/default.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hosts/exodus/default.nix b/hosts/exodus/default.nix index c3d0745..3d5458d 100644 --- a/hosts/exodus/default.nix +++ b/hosts/exodus/default.nix @@ -1,15 +1,21 @@ -{ ... }: +{ config, ... }: { - imports = [ - ./hardware-configuration.nix - ]; + imports = [ ./hardware-configuration.nix ]; - boot.loader = { - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; + boot = { + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + binfmt.emulatedSystems = [ + "i686-linux" + "aarch64-linux" + ]; }; + nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems; + networking.hostName = "exodus"; greg = { home = true;