nix-bitcoin/modules/nix-bitcoin-pkgs.nix

36 lines
1.2 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
let
2019-01-26 10:12:08 -08:00
nixpkgs-pinned = import ../pkgs/nixpkgs-pinned.nix;
nixpkgs-unstable = import nixpkgs-pinned.nixpkgs-unstable { };
# Custom packages
nodeinfo = pkgs.callPackage ../pkgs/nodeinfo { };
banlist = pkgs.callPackage ../pkgs/banlist { };
lightning-charge = pkgs.callPackage ../pkgs/lightning-charge { };
nanopos = pkgs.callPackage ../pkgs/nanopos { };
spark-wallet = pkgs.callPackage ../pkgs/spark-wallet { };
electrs = pkgs.callPackage ../pkgs/electrs { };
liquidd = pkgs.callPackage ../pkgs/liquidd { };
in {
disabledModules = [ "services/security/tor.nix" ];
2019-01-02 07:17:57 -08:00
imports = [
(nixpkgs-pinned.nixpkgs-unstable + "/nixos/modules/services/security/tor.nix")
2019-01-02 07:17:57 -08:00
];
nixpkgs.config.packageOverrides = pkgs: {
# Use bitcoin and clightning from unstable
bitcoin = nixpkgs-unstable.bitcoin.override { };
altcoins.bitcoind = nixpkgs-unstable.altcoins.bitcoind.override { };
clightning = nixpkgs-unstable.clightning.override { };
# Add custom packages
inherit nodeinfo;
inherit banlist;
inherit lightning-charge;
inherit nanopos;
inherit spark-wallet;
inherit electrs;
inherit liquidd;
};
}