assertions: add lnd, clightning exclusivity

This commit is contained in:
nixbitcoin
2020-06-15 13:02:58 +00:00
parent 0ad524ca2d
commit 23cd323ad1
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -26,6 +26,15 @@
};
config = {
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.systemd.services.lnd.wantedBy == []);
message = ''
LND and clightning can't be run in parallel because they both bind to lightning port 9735.
'';
}
];
nixpkgs.overlays = [ (self: super: {
nix-bitcoin = let
pkgs = import ../pkgs { pkgs = super; };