0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

sshd: Fix typing for options which take paths

This commit is contained in:
William A. Kennington III 2014-05-01 16:27:16 -05:00
parent 78c33177ce
commit 1396f624f4

View file

@ -39,7 +39,7 @@ let
}; };
keyFiles = mkOption { keyFiles = mkOption {
type = types.listOf types.unspecified; type = types.listOf types.path;
default = []; default = [];
description = '' description = ''
A list of files each containing one OpenSSH public key that should be A list of files each containing one OpenSSH public key that should be
@ -182,7 +182,7 @@ in
}; };
authorizedKeysFiles = mkOption { authorizedKeysFiles = mkOption {
type = types.listOf types.unspecified; type = types.listOf types.str;
default = []; default = [];
description = "Files from with authorized keys are read."; description = "Files from with authorized keys are read.";
}; };
@ -220,7 +220,7 @@ in
}; };
publicKey = mkOption { publicKey = mkOption {
default = null; default = null;
type = types.nullOr types.string; type = types.nullOr types.str;
description = '' description = ''
The public key data for the host. You can fetch a public key The public key data for the host. You can fetch a public key
from a running SSH server with the <command>ssh-keyscan</command> from a running SSH server with the <command>ssh-keyscan</command>
@ -229,7 +229,7 @@ in
}; };
publicKeyFile = mkOption { publicKeyFile = mkOption {
default = null; default = null;
type = types.nullOr types.unspecified; type = types.nullOr types.path;
description = '' description = ''
The path to the public key file for the host. The public 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. key file is read at build time and saved in the Nix store.