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:
parent
ad97c268c6
commit
c8774375d3
6 changed files with 21 additions and 12 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue