tests/container: don't require services.clightning
to be defined
This commit is contained in:
parent
450de19803
commit
a12b701e75
@ -73,9 +73,9 @@ name: testConfig:
|
|||||||
# has been resolved. This will also improve security.
|
# has been resolved. This will also improve security.
|
||||||
(
|
(
|
||||||
let
|
let
|
||||||
clightning = config.config.services.clightning;
|
s = config.config.services;
|
||||||
in
|
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"; };
|
bindMounts."/dev/fuse" = { hostPath = "/dev/fuse"; };
|
||||||
allowedDevices = [ { node = "/dev/fuse"; modifier = "rw"; } ];
|
allowedDevices = [ { node = "/dev/fuse"; modifier = "rw"; } ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user