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.

37 lines
758 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. { lib, config, nodes, ... }:
  2. with lib;
  3. {
  4. fileSystems."home" = {
  5. mountPoint = "/home";
  6. device = "manager.${config.networking.domain}:/home";
  7. fsType = "nfs";
  8. options = [
  9. "nfsvers=4.2"
  10. "noauto"
  11. "x-systemd.automount"
  12. "x-systemd.idle-timeout=600"
  13. ];
  14. };
  15. services.openssh = {
  16. #logLevel = "DEBUG3";
  17. extraConfig = ''
  18. IgnoreRhosts no
  19. Match Group cluster
  20. HostbasedAuthentication yes
  21. HostbasedAcceptedAlgorithms ssh-ed25519*
  22. HostbasedUsesNameFromPacketOnly yes
  23. '';
  24. };
  25. environment.etc."ssh/shosts.equiv".text = concatStringsSep "\n" (concatMap
  26. (node: [
  27. node.config.networking.hostName
  28. node.config.networking.fqdn
  29. ])
  30. (attrValues nodes));
  31. }