- Remove inputs.nix-bitcoin (fort-nix/nix-bitcoin/release) from flake.nix - Vendor only 6 services actually used by Sovran: bitcoind, electrs, lnd (+lndconnect), rtl, btcpayserver, mempool + supporting infra: secrets, onion-services/addresses, operator, nodeinfo, security, versioning - All packages now from nixpkgs directly (pkgs.*) — no pinned pkgs - Keep nix-bitcoin.* option namespace for compatibility - backups.nix removed: Sovran uses rsnapshot to Second_Drive (configuration.nix: hourly/daily to BTCEcoandBackup) — duplicity remote backup not needed - netns-isolation.nix replaced with stub (5 lines): original 365-line bridge/iptables/ip-netns broke Caddy/AlbyHub/RTL a year ago and is incompatible with nwc-wallets (requires enable=false). Stub keeps option valid but warns if enabled. - Add pkgs/sovran-overlay.nix for gaps only: lndinit + netns-exec stub
38 lines
1.4 KiB
Nix
38 lines
1.4 KiB
Nix
# Sovran overlay — provides packages not in nixpkgs or needing overrides
|
|
# All Bitcoin packages are now sourced from nixpkgs (unstable) directly.
|
|
# This overlay only fills gaps where nixpkgs is missing/broken.
|
|
final: prev: let
|
|
# lndinit is not in nixpkgs — vendor it from nix-bitcoin source
|
|
lndinit = prev.buildGoModule rec {
|
|
pname = "lndinit";
|
|
version = "0.1.3-beta";
|
|
src = prev.fetchFromGitHub {
|
|
owner = "lightninglabs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-sO1DpbppCurxr9g9nUl9Vx82FJK1mTcUw3rY1Fm1wEU=";
|
|
};
|
|
vendorHash = "sha256-El44BS5Bu0K/klMxkajciU/R6uqiXBMOiLN536QztbE=";
|
|
subPackages = [ "." ];
|
|
meta = with prev.lib; {
|
|
description = "Wallet initializer utility for lnd (vendored from nix-bitcoin)";
|
|
homepage = "https://github.com/lightninglabs/lndinit";
|
|
license = licenses.mit;
|
|
};
|
|
};
|
|
|
|
# netns-exec stub — netns isolation is stubbed, this is no-op
|
|
# If not needed, stub it to coreutils
|
|
netns-exec = prev.writeShellScriptBin "netns-exec" ''
|
|
exec "$@"
|
|
'';
|
|
|
|
# nbxplorer is needed by btcpayserver but was removed from nixpkgs in some versions
|
|
# Use nixpkgs version if available, otherwise build from nix-bitcoin pin
|
|
nbxplorer = prev.nbxplorer or (prev.callPackage ./nbxplorer.nix {} );
|
|
in {
|
|
inherit lndinit netns-exec;
|
|
# Re-expose nbxplorer only if missing
|
|
nbxplorer = if prev ? nbxplorer then prev.nbxplorer else nbxplorer;
|
|
}
|