This commit is contained in:
iFargle 2023-09-19 10:54:33 +09:00
parent 829dfdd6f7
commit 9eb8be1793
2 changed files with 5 additions and 1 deletions

View file

@ -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 ];
}

View file

@ -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";