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.

17 lines
298 B

1 year ago
1 year ago
1 year ago
  1. { lib, nodeId, ... }:
  2. with lib;
  3. {
  4. networking.interfaces."enp2s0f0" = {
  5. ipv4.addresses = [{
  6. address = "10.32.47.${fixedWidthNumber 3 (100 + nodeId)}";
  7. prefixLength = 24;
  8. }];
  9. };
  10. networking.defaultGateway = {
  11. address = "10.32.47.1";
  12. interface = "enp2s0f0";
  13. };
  14. }