Remove btc and use Albyhub

This commit is contained in:
Greg Hellings
2025-12-23 18:13:25 -06:00
parent 21f23945c6
commit 44ea82fe2c
8 changed files with 143 additions and 226 deletions
-86
View File
@@ -1,86 +0,0 @@
{ config, pkgs, ... }:
let
ip = "100.68.203.1";
in
{
nix-bitcoin = {
generateSecrets = true;
operator = {
enable = true;
name = "greg";
};
useVersionLockedPkgs = true; # Use the exact versions of packages from upstream
};
networking.firewall.allowedTCPPorts = with config.services; [
bitcoind.port
bitcoind.rpc.port
lnd.restPort
lnd.port
mempool.frontend.port
rtl.port
];
greg.backup.jobs = {
clightning = {
src = config.services.clightning.replication.local.directory;
dest = "hosea-clightning";
};
};
services = {
backups = {
enable = true;
frequency = "hourly";
};
bitcoind = {
enable = true;
address = "0.0.0.0";
dataDir = "/chain/bitcoind";
listen = true;
rpc = {
address = ip;
allowip = [ "100.1.1.1/8" ];
};
};
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 = {
enable = true;
address = ip;
};
};
rtl = {
enable = true;
address = ip;
dataDir = "/chain/rtl";
extraCurrency = "USD";
nodes = {
clightning.enable = true;
lnd.enable = true;
};
};
};
environment.systemPackages = with pkgs; [ ];
}
+7 -3
View File
@@ -5,7 +5,6 @@
{
config,
pkgs,
top,
...
}:
let
@@ -18,8 +17,6 @@ in
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
top.btc.nixosModules.default
./bitcoin.nix
];
# Bootloader
@@ -90,6 +87,13 @@ in
};
services = {
albyhub = {
enable = true;
openFirewall = true;
settings = {
workDir = "/chain/alby";
};
};
jellyfin = {
enable = true;
openFirewall = true;