Added CLN

This commit is contained in:
naturallaw77 2024-06-28 19:55:15 -07:00
parent 89a850a0af
commit 5d69895ff4
2 changed files with 72 additions and 13 deletions

View File

@ -2,14 +2,19 @@
Add-ons are extra features you can have installed before your Sovran Pro is shipped to you. Add-ons are extra features you can have installed before your Sovran Pro is shipped to you.
There is Jitsi Meet that is available to be added on. Jitsi is a video conference software in which you send a web link to a video conference and anyone can join.
1. There is Jitsi Meet that is available to be added on. Jitsi is a video conference software in which you send a web link to a video conference and anyone can join.
https://jitsi.org https://jitsi.org
There is also Bitcoin Knots Node available to be added instead of the regular Bitcoin Node. Bitcoin Knots allows a special filter to block unwanted, unusable, erroneous, yet harmless data on the Bitcoin Block chain.
2. There is also Bitcoin Knots Node available to be added instead of the regular Bitcoin Node. Bitcoin Knots allows a special filter to block unwanted, unusable, erroneous, yet harmless data on the Bitcoin Block chain.
https://bitcoinknots.org https://bitcoinknots.org
3. By default Sovran_SystemsOS runs LND as the default Lightning node software for BTCpayserver. You are now able to run CLN asthe backend to BTCpayserver instead of LND.
The code will be installed in the `custom.nix` file. The code will be installed in the `custom.nix` file.
@ -115,3 +120,11 @@ services.bitcoind.package = pkgs.bitcoind-knots;
``` ```
The code for CLN for BTCpayserver backend is as follows:
```nix
services.btcpayserver.lightningBackend = mkForce "clightning";
```

View File

@ -1,8 +1,8 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
nix-bitcoin.generateSecrets = true;
## Bitcoind
services.bitcoind = { services.bitcoind = {
enable = true; enable = true;
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Bitcoin_Node"; dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Bitcoin_Node";
@ -21,6 +21,30 @@
nix-bitcoin.onionServices.electrs.enable = true; nix-bitcoin.onionServices.electrs.enable = true;
nix-bitcoin.onionServices.rtl.enable = true; nix-bitcoin.onionServices.rtl.enable = true;
## Electrs
services.electrs = {
enable = true;
tor.enforce = true;
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Electrs_Data";
};
## CLN
services.clightning = {
enable = true;
tor.proxy = true;
tor.enforce = true;
port = 9737;
};
nix-bitcoin.onionServices.clightning.public = true;
## LND
services.lnd = { services.lnd = {
enable = true; enable = true;
tor.enforce = true; tor.enforce = true;
@ -30,9 +54,10 @@
protocol.option-scid-alias=true protocol.option-scid-alias=true
''; '';
}; };
nix-bitcoin.onionServices.lnd.public = true;
services.lightning-loop = { services.lightning-loop = {
enable = true; enable = true;
tor.enforce = true; tor.enforce = true;
@ -45,45 +70,66 @@
tor.proxy = true; tor.proxy = true;
}; };
services.charge-lnd.enable = true;
## RTL
services.rtl = { services.rtl = {
enable = true; enable = true;
tor.enforce = true; tor.enforce = true;
port = 3050; port = 3050;
nightTheme = true; nightTheme = true;
nodes = { nodes = {
clightning = {
enable = true;
};
lnd = { lnd = {
enable = true; enable = true;
loop = true; loop = true;
}; };
reverseOrder = true; reverseOrder = true;
}; };
}; };
## Mempool
services.mempool.enable = true; services.mempool.enable = true;
nix-bitcoin.onionServices.mempool-frontend.enable = true; nix-bitcoin.onionServices.mempool-frontend.enable = true;
nix-bitcoin.onionServices.lnd.public = true;
## Lndconnect
services.lnd.lndconnect = { services.lnd.lndconnect = {
enable = true; enable = true;
onion = true; onion = true;
}; };
services.charge-lnd.enable = true; services.clightning-rest = {
services.btcpayserver.lightningBackend = "lnd";
services.electrs = {
enable = true; enable = true;
tor.enforce = true; lndconnect = {
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Electrs_Data"; enable = true;
}; onion = true;
};
};
## BTCpay Server
services.btcpayserver = { services.btcpayserver = {
enable = true; enable = true;
}; };
services.btcpayserver.lightningBackend = "lnd";
## System
nix-bitcoin.generateSecrets = true;
nix-bitcoin.nodeinfo.enable = true; nix-bitcoin.nodeinfo.enable = true;
nix-bitcoin.operator = { nix-bitcoin.operator = {