{ lib, config, nodeConfig, ... }: with lib; { networking.interfaces."enp2s0f0" = { ipv4.addresses = [{ address = "10.32.47.${toString (100 + config.hpc.node.id)}"; prefixLength = 24; }]; }; networking.defaultGateway = { address = "10.32.47.1"; interface = "enp2s0f0"; }; hpc.dhcp.reservations = { "mngt" = { hwAddress = toLower nodeConfig.mngt; ipAddress = "10.32.46.${toString (100 + config.hpc.node.id)}"; }; "data" = { hwAddress = toLower nodeConfig.data; ipAddress = "10.32.47.${toString (100 + config.hpc.node.id)}"; }; }; }