diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix index 4a60e59b20b6..e4b29a0b9090 100644 --- a/nixos/modules/services/networking/ssh/sshd.nix +++ b/nixos/modules/services/networking/ssh/sshd.nix @@ -39,7 +39,7 @@ let }; keyFiles = mkOption { - type = types.listOf types.unspecified; + type = types.listOf types.path; default = []; description = '' A list of files each containing one OpenSSH public key that should be @@ -182,7 +182,7 @@ in }; authorizedKeysFiles = mkOption { - type = types.listOf types.unspecified; + type = types.listOf types.str; default = []; description = "Files from with authorized keys are read."; }; @@ -220,7 +220,7 @@ in }; publicKey = mkOption { default = null; - type = types.nullOr types.string; + type = types.nullOr types.str; description = '' The public key data for the host. You can fetch a public key from a running SSH server with the ssh-keyscan @@ -229,7 +229,7 @@ in }; publicKeyFile = mkOption { default = null; - type = types.nullOr types.unspecified; + type = types.nullOr types.path; description = '' The path to the public key file for the host. The public key file is read at build time and saved in the Nix store.