nixos/lshd: add types

Changed files
+6
nixos
modules
services
networking
ssh
+6
nixos/modules/services/networking/ssh/lshd.nix
···
portNumber = mkOption {
default = 22;
description = ''
The port on which to listen for connections.
'';
···
interfaces = mkOption {
default = [];
description = ''
List of network interfaces where listening for connections.
When providing the empty list, `[]', lshd listens on all
···
hostKey = mkOption {
default = "/etc/lsh/host-key";
description = ''
Path to the server's private key. Note that this key must
have been created, e.g., using "lsh-keygen --server |
···
loginShell = mkOption {
default = null;
description = ''
If non-null, override the default login shell with the
specified value.
···
srpKeyExchange = mkOption {
default = false;
description = ''
Whether to enable SRP key exchange and user authentication.
'';
···
};
subsystems = mkOption {
description = ''
List of subsystem-path pairs, where the head of the pair
denotes the subsystem name, and the tail denotes the path to
···
portNumber = mkOption {
default = 22;
+
type = types.port;
description = ''
The port on which to listen for connections.
'';
···
interfaces = mkOption {
default = [];
+
type = types.listOf types.str;
description = ''
List of network interfaces where listening for connections.
When providing the empty list, `[]', lshd listens on all
···
hostKey = mkOption {
default = "/etc/lsh/host-key";
+
type = types.str;
description = ''
Path to the server's private key. Note that this key must
have been created, e.g., using "lsh-keygen --server |
···
loginShell = mkOption {
default = null;
+
type = types.nullOr types.str;
description = ''
If non-null, override the default login shell with the
specified value.
···
srpKeyExchange = mkOption {
default = false;
+
type = types.bool;
description = ''
Whether to enable SRP key exchange and user authentication.
'';
···
};
subsystems = mkOption {
+
type = types.listOf types.path;
description = ''
List of subsystem-path pairs, where the head of the pair
denotes the subsystem name, and the tail denotes the path to