NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
345 B

1 year ago
  1. { config, lib, ... }:
  2. with lib;
  3. {
  4. options.hpc.netinstall = {
  5. enable = mkEnableOption "NetInstall";
  6. };
  7. config = mkIf config.hpc.netinstall.enable {
  8. assertions = [
  9. {
  10. assertion = hasAttr "data" config.hpc.dhcp.reservations;
  11. message = "NetInstall needs DHCP reservation in data network";
  12. }
  13. ];
  14. };
  15. }