add 'nix-bitcoin-services' option

1. Makes the content easily accessible for module users
2. Avoids needlessly recalculating the attrset in every client module
This commit is contained in:
Erik Arvstedt
2020-01-12 20:02:00 +01:00
parent 7aaf30501c
commit f0a36fe0c7
13 changed files with 25 additions and 16 deletions
+1 -1
View File
@@ -8,8 +8,8 @@
with lib;
let
nix-bitcoin-services = pkgs.callPackage ./nix-bitcoin-services.nix { };
cfg = config.services.onion-chef;
inherit (config) nix-bitcoin-services;
dataDir = "/var/lib/onion-chef/";
onion-chef-script = pkgs.writeScript "onion-chef.sh" ''
# wait until tor is up