Stop assuming that clightning is always enabled

This commit is contained in:
Jonas Nick
2019-04-10 15:48:55 +00:00
parent 7242598909
commit 58ba467ffd
2 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -45,8 +45,9 @@ in {
bitcoin-node = import ./configuration.nix;
in {
deployment.keys = {
inherit bitcoin-rpcpassword lightning-charge-api-token;
inherit bitcoin-rpcpassword;
}
// (if (config.services.lightning-charge.enable) then { inherit lightning-charge-api-token; } else { })
// (if (config.services.nanopos.enable) then { inherit lightning-charge-api-token-for-nanopos; } else { })
// (if (config.services.liquidd.enable) then { inherit liquid-rpcpassword; } else { })
// (if (config.services.spark-wallet.enable) then { inherit spark-wallet-login; } else { });