Merge pull request #111419 from helsinki-systems/lshd
nixos/lshd: add types
This commit is contained in:
commit
60b597ad3b
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,7 @@ in
|
||||||
|
|
||||||
portNumber = mkOption {
|
portNumber = mkOption {
|
||||||
default = 22;
|
default = 22;
|
||||||
|
type = types.port;
|
||||||
description = ''
|
description = ''
|
||||||
The port on which to listen for connections.
|
The port on which to listen for connections.
|
||||||
'';
|
'';
|
||||||
|
@ -36,6 +37,7 @@ in
|
||||||
|
|
||||||
interfaces = mkOption {
|
interfaces = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
|
type = types.listOf types.str;
|
||||||
description = ''
|
description = ''
|
||||||
List of network interfaces where listening for connections.
|
List of network interfaces where listening for connections.
|
||||||
When providing the empty list, `[]', lshd listens on all
|
When providing the empty list, `[]', lshd listens on all
|
||||||
|
@ -46,6 +48,7 @@ in
|
||||||
|
|
||||||
hostKey = mkOption {
|
hostKey = mkOption {
|
||||||
default = "/etc/lsh/host-key";
|
default = "/etc/lsh/host-key";
|
||||||
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Path to the server's private key. Note that this key must
|
Path to the server's private key. Note that this key must
|
||||||
have been created, e.g., using "lsh-keygen --server |
|
have been created, e.g., using "lsh-keygen --server |
|
||||||
|
@ -79,6 +82,7 @@ in
|
||||||
|
|
||||||
loginShell = mkOption {
|
loginShell = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
|
type = types.nullOr types.str;
|
||||||
description = ''
|
description = ''
|
||||||
If non-null, override the default login shell with the
|
If non-null, override the default login shell with the
|
||||||
specified value.
|
specified value.
|
||||||
|
@ -88,6 +92,7 @@ in
|
||||||
|
|
||||||
srpKeyExchange = mkOption {
|
srpKeyExchange = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to enable SRP key exchange and user authentication.
|
Whether to enable SRP key exchange and user authentication.
|
||||||
'';
|
'';
|
||||||
|
@ -106,6 +111,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
subsystems = mkOption {
|
subsystems = mkOption {
|
||||||
|
type = types.listOf types.path;
|
||||||
description = ''
|
description = ''
|
||||||
List of subsystem-path pairs, where the head of the pair
|
List of subsystem-path pairs, where the head of the pair
|
||||||
denotes the subsystem name, and the tail denotes the path to
|
denotes the subsystem name, and the tail denotes the path to
|
||||||
|
|
Loading…
Reference in a new issue