From 655d909416397a7804200e46e456390b227541b4 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 14 May 2024 11:46:49 -0400 Subject: [PATCH] Set up Haven as a distributed build target for aarch64 --- hosts/Haven/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hosts/Haven/default.nix b/hosts/Haven/default.nix index 3e7ee38..bf5d523 100644 --- a/hosts/Haven/default.nix +++ b/hosts/Haven/default.nix @@ -59,10 +59,15 @@ in }; }; - # Enable mdadm and Sapana (RAID 5 primary storage) - boot.swraid = { - enable = true; - # mdadmConf configured in nix-secrets + boot = { + # Enable mdadm for Sapana (RAID 5 primary storage) + swraid = { + enable = true; + # mdadmConf configured in nix-secrets + }; + + # Allow Haven to be a build target for other architectures (mainly ARM64) + binfmt.emulatedSystems = [ "aarch64-linux" ]; }; # Open port for OpenVPN