MyNixOS website logo

Specifies the platform on which nix-darwin should be built. By default, nix-darwin is built on the system where it runs, but you can change where it's built. Setting this option will cause nix-darwin 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
    {
      config = "x86_64-apple-darwin";
      system = "x86_64-darwin";
    }