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.

30 lines
624 B

11 months ago
11 months ago
  1. { lib, config, ... }:
  2. with lib;
  3. {
  4. options.hpc.dhcp = {
  5. reservations = mkOption {
  6. description = ''
  7. DHCP reservations for this host.
  8. '';
  9. type = types.attrsOf (types.submodule {
  10. options = {
  11. hwAddress = mkOption {
  12. description = ''
  13. MAC address of the interface in this network.
  14. '';
  15. type = types.str;
  16. apply = toLower;
  17. };
  18. ipAddress = mkOption {
  19. description = ''
  20. IP address of the host.
  21. '';
  22. };
  23. };
  24. });
  25. default = { };
  26. };
  27. };
  28. }