From f0096371bf2f287b29346ecd8a8d2913c1a11037 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 8 Dec 2021 04:07:26 +0100 Subject: [PATCH] btcpayserver: expand `nbPkgs` in option defaults Required by commit `nix-bitcoin.nix: add `defaultText` (automatic)`. --- modules/btcpayserver.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/btcpayserver.nix b/modules/btcpayserver.nix index 94f6074..b1926e1 100644 --- a/modules/btcpayserver.nix +++ b/modules/btcpayserver.nix @@ -18,9 +18,9 @@ let package = mkOption { type = types.package; default = if cfg.btcpayserver.lbtc then - nbPkgs.btcpayserver.override { altcoinSupport = true; } + config.nix-bitcoin.pkgs.btcpayserver.override { altcoinSupport = true; } else - nbPkgs.btcpayserver; + config.nix-bitcoin.pkgs.btcpayserver; description = "The package providing btcpayserver binaries."; }; dataDir = mkOption { @@ -68,7 +68,7 @@ let }; package = mkOption { type = types.package; - default = nbPkgs.nbxplorer; + default = config.nix-bitcoin.pkgs.nbxplorer; description = "The package providing nbxplorer binaries."; }; address = mkOption { @@ -102,7 +102,6 @@ let cfg = config.services; nbLib = config.nix-bitcoin.lib; - nbPkgs = config.nix-bitcoin.pkgs; inherit (config.services) bitcoind liquidd; in {