From b72ec19ab45d9259fb32c0b3da64a5b51a124895 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 23 Jul 2023 09:11:00 +0200 Subject: mba: use lima-nixos VM for cross-compilation --- system/mba.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'system') diff --git a/system/mba.nix b/system/mba.nix index 97b5938d..f724dc4f 100644 --- a/system/mba.nix +++ b/system/mba.nix @@ -25,6 +25,20 @@ cores = 4; auto-optimise-store = true; }; + + nix.buildMachines = [ + { + hostName = "lima-nixos"; + system = "aarch64-linux"; + sshUser = "nix-remote"; + sshKey = "/var/root/.ssh/nix-remote"; + protocol = "ssh-ng"; + maxJobs = 4; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + } + ]; + nix.distributedBuilds = true; } # vim: sw=2 sts=2 expandtab autoindent smarttab -- cgit 1.4.1