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
parent 6cbd0d93ae
commit ae733d887e
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

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