From 9eb8be1793a2f1de63c55b1ac3ae2d6852a7715b Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 19 Sep 2023 10:54:33 +0900 Subject: [PATCH] test --- nixos/hosts/nixos-rpi4-img/default.nix | 1 + nixos/hosts/nixos-vm-01/default.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/nixos-rpi4-img/default.nix b/nixos/hosts/nixos-rpi4-img/default.nix index ead31d5b..cd333d58 100644 --- a/nixos/hosts/nixos-rpi4-img/default.nix +++ b/nixos/hosts/nixos-rpi4-img/default.nix @@ -3,6 +3,7 @@ # nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage nixpkgs.hostPlatform.system = "aarch64-linux"; nixpkgs.buildPlatform.system = "x86_64-linux"; + nixpkgs.crossSystem.system = "armv7l-linux"; networking.hostName = "nixos-rpi4-img"; networking.firewall.allowedTCPPorts = [ 22 ]; } \ No newline at end of file diff --git a/nixos/hosts/nixos-vm-01/default.nix b/nixos/hosts/nixos-vm-01/default.nix index e6a6d823..aab79539 100644 --- a/nixos/hosts/nixos-vm-01/default.nix +++ b/nixos/hosts/nixos-vm-01/default.nix @@ -8,7 +8,10 @@ boot.extraModulePackages = [ ]; # For cross-architecture builds - boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + boot.binfmt.emulatedSystems = [ + "aarch64-linux" + "armv7l-linux" + ]; fileSystems."/" = { device = "/dev/disk/by-label/ROOT";