From ab23466fb7c4de238bdf08a17b00c56261492a12 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sat, 22 Oct 2022 19:37:52 +0200 Subject: [PATCH] tests/container: don't require `services.clightning` to be defined --- test/lib/make-test.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/make-test.nix b/test/lib/make-test.nix index bad9f86..fb07fcd 100644 --- a/test/lib/make-test.nix +++ b/test/lib/make-test.nix @@ -73,9 +73,9 @@ name: testConfig: # has been resolved. This will also improve security. ( let - clightning = config.config.services.clightning; + s = config.config.services; in - lib.mkIf (clightning.enable && clightning.replication.enable) { + lib.mkIf (s ? clightning && s.clightning.enable && s.clightning.replication.enable) { bindMounts."/dev/fuse" = { hostPath = "/dev/fuse"; }; allowedDevices = [ { node = "/dev/fuse"; modifier = "rw"; } ]; }