modules: use consistent service variables

Benefits of adding top-level variables for used services:
- Makes it obvious which other services are referenced by a service
- Less code

We already do this in many other places.
This commit is contained in:
Erik Arvstedt 2021-09-13 13:40:49 +02:00
parent ad97c268c6
commit c8774375d3
No known key found for this signature in database
GPG key ID: 33312B944DD97846
6 changed files with 21 additions and 12 deletions

View file

@ -76,6 +76,7 @@ let
cfg = config.services.clightning;
nbLib = config.nix-bitcoin.lib;
nbPkgs = config.nix-bitcoin.pkgs;
network = config.services.bitcoind.makeNetworkName "bitcoin" "regtest";
configFile = pkgs.writeText "config" ''
network=${network}