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.

33 lines
759 B

1 year ago
1 year ago
  1. # TFTP boot with shared image
  2. # Requests store path to install from master
  3. # Runs disko and nixos-install
  4. { pkgs, lib, config, ... }:
  5. {
  6. services.pixiecore = {
  7. enable = true;
  8. mode = "api";
  9. dhcpNoBind = true;
  10. debug = true;
  11. statusPort = 6080;
  12. apiServer = "http://boot.${config.networking.domain}/pixiecore";
  13. };
  14. services.nginx = {
  15. enable = true;
  16. recommendedProxySettings = true;
  17. virtualHosts = {
  18. "boot.${config.networking.domain}" = {
  19. locations."/status".proxyPass = "http://localhost:${toString config.services.pixiecore.statusPort}";
  20. locations."/pixiecore" = {
  21. root = "/srv/pixieboot";
  22. };
  23. };
  24. };
  25. };
  26. hpc.hostFile = [
  27. "boot.${config.networking.domain}"
  28. ];
  29. }