tests/container: don't require services.clightning
to be defined
This commit is contained in:
parent
365068d763
commit
ab23466fb7
@ -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