added aarch64-linux emulation to Anton

This commit is contained in:
willifan 2024-12-14 18:47:14 +01:00
parent 5f980fc193
commit 1b94cf91f4
2 changed files with 5 additions and 2 deletions

View file

@ -4,7 +4,7 @@
nix.buildMachines = [ {
hostName = "Anton";
sshUser = "builder";
system = "x86_64-linux";
systems = [ "x86_64-linux" "aarch64-linux" ];
protocol = "ssh";
# if the builder supports building for multiple architectures,
# replace the previous line by, e.g.

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
users.users.builder = {
group = "builder";
@ -8,4 +8,7 @@
};
users.groups.builder = { };
nix.settings.trusted-users = [ "builder" "willifan" ];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems;
}