nixpkgs.hostPlatform

NixOS option

Specifies the platform where the NixOS configuration will run. To cross-compile, set also nixpkgs.buildPlatform. Ignored when nixpkgs.pkgs is set.

type: string or (attribute set)
Example
{
  system = "aarch64-linux";
}
declared in: nixos/modules/misc/nixpkgs.nixView source on NixOS/nixpkgs →