tests/clightning-replication: reuse pkgs instance

This reduces eval time by 30%.
This commit is contained in:
Erik Arvstedt 2022-12-12 11:57:14 +01:00 committed by Greg Shuflin
parent 2a073a1d64
commit 72f09458b6

View File

@ -14,6 +14,8 @@ let
clientBaseConfig = {
imports = [ ../modules/modules.nix ];
nixpkgs.pkgs = pkgs;
nix-bitcoin.generateSecrets = true;
services.clightning = {
@ -54,7 +56,9 @@ makeTestVM {
services.clightning.replication.encrypt = true;
};
server = { ... }: {
server = {
nixpkgs.pkgs = pkgs;
environment.etc."ssh-host-key" = {
source = keys.server;
mode = "400";