2019-11-27 13:04:23 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2019-11-27 13:04:20 +00:00
|
|
|
let
|
|
|
|
nixpkgs-pinned = import ../pkgs/nixpkgs-pinned.nix;
|
|
|
|
unstable = import nixpkgs-pinned.nixpkgs-unstable {};
|
|
|
|
|
|
|
|
allPackages = pkgs: (import ../pkgs { inherit pkgs; }) // {
|
|
|
|
bitcoin = unstable.bitcoin.override { miniupnpc = null; };
|
|
|
|
bitcoind = unstable.bitcoind.override { miniupnpc = null; };
|
|
|
|
clightning = unstable.clightning;
|
|
|
|
lnd = unstable.lnd;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
./bitcoind.nix
|
|
|
|
./clightning.nix
|
|
|
|
./lightning-charge.nix
|
|
|
|
./nanopos.nix
|
|
|
|
./nix-bitcoin-webindex.nix
|
|
|
|
./liquid.nix
|
|
|
|
./spark-wallet.nix
|
|
|
|
./electrs.nix
|
|
|
|
./onion-chef.nix
|
|
|
|
./recurring-donations.nix
|
|
|
|
./hardware-wallets.nix
|
|
|
|
./lnd.nix
|
2020-01-12 19:52:38 +00:00
|
|
|
./secrets/secrets.nix
|
2019-11-27 13:04:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledModules = [ "services/networking/bitcoind.nix" ];
|
|
|
|
|
2019-11-27 13:04:23 +00:00
|
|
|
options = {
|
|
|
|
nix-bitcoin-services = lib.mkOption {
|
|
|
|
readOnly = true;
|
|
|
|
default = import ./nix-bitcoin-services.nix lib;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
nixpkgs.overlays = [ (self: super: {
|
|
|
|
nix-bitcoin = allPackages super;
|
|
|
|
}) ];
|
|
|
|
};
|
2019-11-27 13:04:20 +00:00
|
|
|
}
|