aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-06-30 15:24:27 +0200
committerKarel Kočí <cynerd@email.cz>2022-06-30 15:24:27 +0200
commitbe3bcf4526f647c9f6fba76bcac51938d7ca357b (patch)
tree1c72ddd470c1241beb20f1f0fd17f07e09b81281 /nixos
parent80372557415a2671584458be4d02cd60bcee0641 (diff)
downloadnixos-personal-be3bcf4526f647c9f6fba76bcac51938d7ca357b.tar.gz
nixos-personal-be3bcf4526f647c9f6fba76bcac51938d7ca357b.tar.bz2
nixos-personal-be3bcf4526f647c9f6fba76bcac51938d7ca357b.zip
nixos/compile: add support for binfmt armv7 and aarch64
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/compile.nix5
-rw-r--r--nixos/modules/develop.nix3
-rw-r--r--nixos/modules/generic.nix2
3 files changed, 9 insertions, 1 deletions
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