MyNixOS website logo

The hostname of your system, as visible from the command line and used by local and remote networks when connecting through SSH and Remote Login.

Setting this option is equivalent to running the command scutil --set HostName.

(Note that networking.localHostName defaults to the value of this option.)

Declarations
    Type
    null or string matching the pattern ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$
    Default
    null
    Example
    "Johns-MacBook-Pro"