services: use 'port' option type
This commit is contained in:
parent
0ac1e496b2
commit
db48ab9b69
6 changed files with 10 additions and 10 deletions
|
|
@ -20,12 +20,12 @@ in {
|
|||
|
||||
options = {
|
||||
services.clightning.onionport = mkOption {
|
||||
type = types.ints.u16;
|
||||
type = types.port;
|
||||
default = 9735;
|
||||
description = "Port on which to listen for tor client connections.";
|
||||
};
|
||||
services.electrs.onionport = mkOption {
|
||||
type = types.ints.u16;
|
||||
type = types.port;
|
||||
default = 50002;
|
||||
description = "Port on which to listen for tor client connections.";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue