nixpkgs.system

NixOS option

This option does not need to be specified for NixOS configurations with a recently generated hardware-configuration.nix. Specifies the Nix platform type on which NixOS should be built. It is better to specify nixpkgs.localSystem instead. { nixpkgs.system = ..; } is the same as { nixpkgs.localSystem.system = ..; } See nixpkgs.localSystem for more information. Ignored when nixpkgs.pkgs, nixpkgs.localSystem or nixpkgs.hostPlatform is set.

type: string
Default
<rendered-html><p>Traditionally <code>builtins.currentSystem</code>, but unset when
invoking NixOS through <code>lib.nixosSystem</code>.</p>
</rendered-html>
Example
"i686-linux"
declared in: nixos/modules/misc/nixpkgs.nixView source on NixOS/nixpkgs →