system.build.toplevel

This option contains the store path that typically represents a NixOS system.

You can read this path in a custom deployment tool for example.

Type
package
Declared
<nixpkgs/nixos/modules/system/activation/top-level.nix>