From 225854b8383f07f672e6f4823d4d7021fa51dfc4 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 5 Sep 2024 16:19:26 -0500 Subject: [PATCH 1/2] Now with more lightning --- hosts/hosea/bitcoin.nix | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/hosts/hosea/bitcoin.nix b/hosts/hosea/bitcoin.nix index 5c81703..31c947b 100644 --- a/hosts/hosea/bitcoin.nix +++ b/hosts/hosea/bitcoin.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, pkgs, ... }: let ip = "100.68.203.1"; @@ -15,10 +15,24 @@ in { networking.firewall.allowedTCPPorts = with config.services; [ bitcoind.port bitcoind.rpc.port + lnd.restPort + lnd.port mempool.frontend.port ]; + greg.backup.jobs = { + clightning = { + src = config.services.clightning.replication.local.directory; + dest = "hosea-clightning"; + id = "clightning"; + }; + }; + services = { + backups = { + enable = true; + frequency = "hourly"; + }; bitcoind = { enable = true; address = "0.0.0.0"; @@ -31,11 +45,25 @@ in { ]; }; }; - clightning.enable = true; + clightning = { + enable = true; + address = ip; + port = 9736; + replication = { + enable = true; + local.directory = "/var/backup/clightning"; + encrypt = false; + }; + }; electrs = { enable = true; address = ip; }; + lnd = { + enable = true; + address = ip; + lndconnect.enable = true; + }; mempool = { enable = true; frontend = { @@ -44,4 +72,7 @@ in { }; }; }; + + environment.systemPackages = with pkgs; [ + ]; } From 05a1c320348b6e7148e5da6c5896eae3cc8ce7b8 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 6 Sep 2024 09:38:58 -0500 Subject: [PATCH 2/2] Add Okta plugin --- home/modules/gui.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/modules/gui.nix b/home/modules/gui.nix index d212c11..f28cc7a 100644 --- a/home/modules/gui.nix +++ b/home/modules/gui.nix @@ -104,6 +104,7 @@ in { foxyproxy-standard multi-account-containers octotree + okta-browser-plugin refined-github tree-style-tab ublock-origin