mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-09-11 23:17:20 +03:00
109 lines
2.7 KiB
Nix
109 lines
2.7 KiB
Nix
# Extra scenarios for developing and debugging
|
|
|
|
{ lib, scenarios }:
|
|
|
|
with lib;
|
|
{
|
|
btcpayserver-regtest = {
|
|
imports = [ scenarios.regtestBase ];
|
|
services.btcpayserver.enable = true;
|
|
test.container.exposeLocalhost = true;
|
|
# services.btcpayserver.lbtc = false;
|
|
|
|
# Required for testing interactive plugin installation
|
|
test.container.enableWAN = true;
|
|
};
|
|
|
|
# A node with internet access to test joinmarket-ob-watcher
|
|
jm-ob-watcher = {
|
|
services.joinmarket-ob-watcher.enable = true;
|
|
# Don't download blocks
|
|
services.bitcoind.extraConfig = ''
|
|
connect = 0;
|
|
'';
|
|
test.container.exposeLocalhost = true;
|
|
test.container.enableWAN = true;
|
|
};
|
|
|
|
rtl-dev = { config, pkgs, lib, ... }: {
|
|
imports = [
|
|
# scenarios.netnsBase
|
|
# scenarios.regtestBase
|
|
];
|
|
services.rtl = {
|
|
enable = true;
|
|
nodes.clightning = {
|
|
enable = true;
|
|
extraConfig.Settings.themeColor = "INDIGO";
|
|
};
|
|
# nodes.lnd.enable = false;
|
|
# nodes.reverseOrder = true;
|
|
nightTheme = true;
|
|
extraCurrency = "CHF";
|
|
};
|
|
test.container.exposeLocalhost = true;
|
|
nix-bitcoin.nodeinfo.enable = true;
|
|
# test.container.enableWAN = true;
|
|
};
|
|
|
|
wireguard-lndconnect-online = { config, pkgs, lib, ... }: {
|
|
imports = [
|
|
../modules/presets/wireguard.nix
|
|
scenarios.regtestBase
|
|
];
|
|
|
|
# 51820 (default wg port) + 1
|
|
networking.wireguard.interfaces.wg-nb.listenPort = 51821;
|
|
test.container.enableWAN = true;
|
|
# test.container.exposeLocalhost = true;
|
|
|
|
services.clightning.extraConfig = "disable-dns";
|
|
|
|
services.lnd = {
|
|
enable = true;
|
|
lndconnect = {
|
|
enable = true;
|
|
onion = true;
|
|
};
|
|
};
|
|
services.clightning-rest = {
|
|
enable = true;
|
|
lndconnect = {
|
|
enable = true;
|
|
onion = true;
|
|
};
|
|
};
|
|
nix-bitcoin.nodeinfo.enable = true;
|
|
};
|
|
|
|
trustedcoin-online = {
|
|
services.clightning = {
|
|
enable = true;
|
|
tor.proxy = true;
|
|
plugins.trustedcoin.enable = true;
|
|
plugins.trustedcoin.tor.proxy = false;
|
|
};
|
|
|
|
# Don't run clightning on startup.
|
|
# This breaks the follwing dependency cycle:
|
|
# clightning
|
|
# -> network (trustedcoin fails and exits clightning without network access)
|
|
# -> multi-user.target (NixOS containers only gain network access after multi-user.target has completed)
|
|
# -> clightning
|
|
systemd.services.clightning.wantedBy = mkForce [];
|
|
|
|
test.container.enableWAN = true;
|
|
};
|
|
|
|
mempool-regtest = {
|
|
imports = [
|
|
scenarios.regtestBase
|
|
];
|
|
services.mempool = {
|
|
enable = true;
|
|
frontend.address = "0.0.0.0";
|
|
};
|
|
nix-bitcoin.nodeinfo.enable = true;
|
|
};
|
|
}
|