From be3bcf4526f647c9f6fba76bcac51938d7ca357b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2022 15:24:27 +0200 Subject: nixos/compile: add support for binfmt armv7 and aarch64 --- nixos/modules/compile.nix | 5 +++++ nixos/modules/develop.nix | 3 +++ nixos/modules/generic.nix | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/compile.nix b/nixos/modules/compile.nix index a1709e6..7988699 100644 --- a/nixos/modules/compile.nix +++ b/nixos/modules/compile.nix @@ -13,6 +13,11 @@ with lib; }; config = mkIf config.cynerd.compile { + nix.extraOptions = '' + max-jobs = 32 + cores = 0 + ''; + boot.binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ]; environment.systemPackages = with pkgs; [ # Tools diff --git a/nixos/modules/develop.nix b/nixos/modules/develop.nix index 1875e57..a4a33e2 100644 --- a/nixos/modules/develop.nix +++ b/nixos/modules/develop.nix @@ -56,6 +56,9 @@ in { # Ansible ansible + # Qemmu + qemu + # U-Boot ubootTools tftp-hpa diff --git a/nixos/modules/generic.nix b/nixos/modules/generic.nix index da113ab..34f952c 100644 --- a/nixos/modules/generic.nix +++ b/nixos/modules/generic.nix @@ -30,7 +30,7 @@ with lib; git # We need git for this repository to even work # Administration tools coreutils moreutils psmisc progress lshw file - ldns + ldns wget gnumake exfat exfatprogs nix-index -- cgit v1.2.3