tests/container: don't require services.clightning to be defined

This commit is contained in:
Erik Arvstedt 2022-10-22 19:37:52 +02:00 committed by Greg Shuflin
parent 365068d763
commit ab23466fb7

View File

@ -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"; } ];
}