MyNixOS website logo

SSH host key declarations. Each entry specifies a key type and path. HostKey directives are written to the sshd configuration for each entry.

The default matches the keys that macOS automatically generates.

Declarations
    Type
    list of (submodule)
    Default
    [
      {
        path = "/etc/ssh/ssh_host_rsa_key";
        type = "rsa";
      }
      {
        path = "/etc/ssh/ssh_host_ecdsa_key";
        type = "ecdsa";
      }
      {
        path = "/etc/ssh/ssh_host_ed25519_key";
        type = "ed25519";
      }
    ]