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.

20 lines
383 B

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