summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-07-23 09:11:00 +0200
committerAlan Pearce2023-07-23 09:11:00 +0200
commitb72ec19ab45d9259fb32c0b3da64a5b51a124895 (patch)
tree39e62d0ab02b80d873becaf995609e33fbf228c0
parentf99c69a24094f471bb48a9eb60994e9118da884b (diff)
downloadnixfiles-b72ec19ab45d9259fb32c0b3da64a5b51a124895.tar.lz
nixfiles-b72ec19ab45d9259fb32c0b3da64a5b51a124895.tar.zst
nixfiles-b72ec19ab45d9259fb32c0b3da64a5b51a124895.zip
mba: use lima-nixos VM for cross-compilation
-rw-r--r--system/mba.nix14
1 files changed, 14 insertions, 0 deletions
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