From 72f09458b6b7edf8aaf776a627a55994a0d130a3 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 12 Dec 2022 11:57:14 +0100 Subject: [PATCH] tests/clightning-replication: reuse `pkgs` instance This reduces eval time by 30%. --- test/clightning-replication.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/clightning-replication.nix b/test/clightning-replication.nix index b607876..a55277e 100644 --- a/test/clightning-replication.nix +++ b/test/clightning-replication.nix @@ -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";