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 2019-11-27 14:04:23 +01:00
parent 7aaf30501c
commit f0a36fe0c7
No known key found for this signature in database
GPG key ID: 33312B944DD97846
13 changed files with 25 additions and 16 deletions

View file

@ -3,8 +3,8 @@
with lib;
let
nix-bitcoin-services = pkgs.callPackage ./nix-bitcoin-services.nix { };
cfg = config.services.clightning;
inherit (config) nix-bitcoin-services;
configFile = pkgs.writeText "config" ''
autolisten=${if cfg.autolisten then "true" else "false"}
network=bitcoin