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
parent 450de19803
commit a12b701e75
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 2 additions and 2 deletions

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