The system can be configured as if it were a usual NixOS configuration. The following additional option is added for nixos-nspawn-specific settings:
nixosContainer
The container configuration. See container options for a full list of options.
Type: attribute set
Default:
{ }
Example:
bindMounts = [
"/path/on/host:/path/on/container"
];