system.name
NixOS option
The name of the system used in the system.build.toplevel derivation. That derivation has the following name: "nixos-system-${config.system.name}-${config.system.nixos.label}"
type: stringDefault
declared in: nixos/modules/system/activation/top-level.nixView source on NixOS/nixpkgs →if config.networking.hostName == "" then "unnamed" else config.networking.hostName;