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
1 changed files with 5 additions and 1 deletions

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";