tests/container: don't require services.clightning to be defined
This commit is contained in:
parent
450de19803
commit
a12b701e75
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue