assertions: make lnd.enable depend on !clightning.enable or port != 9735
This commit is contained in:
parent
3ed564ea06
commit
ac96fd59db
@ -44,8 +44,10 @@
|
|||||||
# services.clightning.announce-tor = true;
|
# services.clightning.announce-tor = true;
|
||||||
|
|
||||||
### LND
|
### LND
|
||||||
# Disable clightning and uncomment the following line in order to enable lnd,
|
# Uncomment the following line in order to enable lnd, a lightning
|
||||||
# a lightning implementation written in Go.
|
# implementation written in Go. In order to avoid collisions with clightning
|
||||||
|
# you must disable clightning or change the services.clightning.bindport or
|
||||||
|
# services.lnd.listenPort to a port other than 9735.
|
||||||
# services.lnd.enable = true;
|
# services.lnd.enable = true;
|
||||||
# Enable this option to announce our Tor Hidden Service. By default lnd
|
# Enable this option to announce our Tor Hidden Service. By default lnd
|
||||||
# offers outgoing functionality, but doesn't announce the Tor Hidden Service
|
# offers outgoing functionality, but doesn't announce the Tor Hidden Service
|
||||||
|
@ -30,10 +30,11 @@
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
assertions = [
|
assertions = [
|
||||||
# lnd.wantedBy == [] needed for `test/tests.nix` in which both clightning and lnd are enabled
|
{ assertion = (config.services.lnd.enable -> ( !config.services.clightning.enable || config.services.clightning.bindport != config.services.lnd.listenPort));
|
||||||
{ assertion = config.services.lnd.enable -> (!config.services.clightning.enable || config.systemd.services.lnd.wantedBy == []);
|
|
||||||
message = ''
|
message = ''
|
||||||
LND and clightning can't be run in parallel because they both bind to lightning port 9735.
|
LND and clightning can't both bind to lightning port 9735. Either
|
||||||
|
disable LND/clightning or change services.clightning.bindPort or
|
||||||
|
services.lnd.listenPort to a port other than 9735.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user