fix: isGateway returns false instead of throwing when node does not exist

This commit is contained in:
Ceferino Patino 2026-06-01 19:41:32 -05:00
commit a52cde2dd4
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI

View file

@ -138,7 +138,7 @@ with lib; rec {
isGateway = devices: node:
if builtins.hasAttr node devices
then devices.${node}.gateway
else throw "Host '${node}' does not exist in the devices configuration.";
else false;
## Check for configuration conflicts between mount and share declarations.
##