citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 13f2ada7759429185ad8aeb2bf973095b70cfe35
parent 74be651bfb6e25a03b4a81b3da44337485beadd8
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  5 May 2021 13:49:39 -0700

monad/service: add clightning wireguard rpc tunnel

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mnix-config/machines/monad/default.nix | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/nix-config/machines/monad/default.nix b/nix-config/machines/monad/default.nix @@ -202,6 +202,16 @@ in #boot.kernelParams = [ "pcie_acs_override=downstream" ]; + systemd.user.services.clightning-rpc-tunnel = { + description = "clightning mainnet rpc tunnel"; + wantedBy = [ "default.target" ]; + after = [ "default.target" ]; + + serviceConfig.ExecStart = extra.util.writeBash "lightning-tunnel" '' + ${pkgs.socat}/bin/socat -d -d TCP-LISTEN:7878,fork,reuseaddr,range=10.100.0.2/32 UNIX-CONNECT:/home/jb55/.lightning/bitcoin/lightning-rpc + ''; + }; + virtualisation.libvirtd.enable = true; virtualisation.libvirtd.qemuOvmf = true; virtualisation.libvirtd.qemuVerbatimConfig = ''