From 9206f9da29d6a6b366973381a327600f857050e1 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 11 Oct 2024 15:28:14 +0200 Subject: [PATCH] eple: binfmt aarch64-linux --- flake.nix | 2 +- hosts/eple/configuration.nix | 4 ++++ hosts/known-hosts.toml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 692572a..3649c26 100644 --- a/flake.nix +++ b/flake.nix @@ -169,7 +169,7 @@ # file = ./secrets/${hostname}.yaml; # exists = builtins.pathExists file; # yaml = lib.removeAttrs (lib.importYAML file) ["sops"]; - # secrets = lib.attrNames yaml; + # secrets = lib.attrNames yaml; # TODO: recurse #in # if !exists then {} else lib.mkMerge (lib.forEach secrets (secret: # lib.mkIf (config.sops.secrets ? secret) { diff --git a/hosts/eple/configuration.nix b/hosts/eple/configuration.nix index 4cd1f18..f9bb6dc 100644 --- a/hosts/eple/configuration.nix +++ b/hosts/eple/configuration.nix @@ -5,6 +5,10 @@ boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.efiSysMountPoint = "/boot/efi"; + boot.binfmt.emulatedSystems = [ + "aarch64-linux" + ]; + services.nfs.server.enable = false; # TODO: remove? imports = [ diff --git a/hosts/known-hosts.toml b/hosts/known-hosts.toml index 51b2d88..98ad87d 100644 --- a/hosts/known-hosts.toml +++ b/hosts/known-hosts.toml @@ -52,6 +52,7 @@ ssh.proxyJump = "isvegg.pvv.ntnu.no" ["eple.pbsds.net"] # r9 290x aliases = [ "eple.tail9aac63.ts.net" ] +buildMachine.systems = ["x86_64-linux", "i686-linux", "aarch64-linux"] buildMachine.maxJobs = 3 # 12 threads 32GB buildMachine.speedFactor = 3 # i7-5820K buildMachine.supportedFeatures = ["kvm", "big-parallel", "nixos-test"]