MyNixOS website logo

Specifies the platform on which NixOS should be built. By default, NixOS is built on the system where it runs, but you can change where it's built. Setting this option will cause NixOS to be cross-compiled.

For instance, if you're doing distributed multi-platform deployment, or if you're building machines, you can set this to match your development system and/or build farm.

Ignored when nixpkgs.pkgs is set.

Declarations
Type
string or (attribute set)
Default
config.nixpkgs.hostPlatform
Example
{
  system = "x86_64-linux";
}