This commit is contained in:
iFargle 2023-12-14 21:48:25 +09:00
parent f7a3d9b67e
commit cdaf72c8ac

View file

@ -1,8 +1,8 @@
{ config, lib, pkgs, modulesPath, platform, ... }: { { config, lib, pkgs, modulesPath, platform, ... }: {
# Build this image with: # Build this image with:
# nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage # nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage
nixpkgs.hostPlatform.system = "aarch64-linux";
nixpkgs.buildPlatform.system = "x86_64-linux"; nixpkgs.buildPlatform.system = "x86_64-linux";
# nixpkgs.crossSystem.system = "armv7l-linux"; # nixpkgs.crossSystem.system = "armv7l-linux";
networking.hostName = "nixos-rpi4-img"; networking.hostName = "nixos-rpi4-img";
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [ 22 ];