{ config, lib, ... }: with lib; { options.hpc.netinstall = { enable = mkEnableOption "NetInstall"; }; config = mkIf config.hpc.netinstall.enable { assertions = [ { assertion = hasAttr "data" config.hpc.dhcp.reservations; message = "NetInstall needs DHCP reservation in data network"; } ]; }; }