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.

39 lines
784 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year 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. settings = {
  17. #LogLevel = "DEBUG3";
  18. };
  19. extraConfig = ''
  20. IgnoreRhosts no
  21. Match Group cluster
  22. HostbasedAuthentication yes
  23. HostbasedAcceptedAlgorithms ssh-ed25519*
  24. HostbasedUsesNameFromPacketOnly yes
  25. '';
  26. };
  27. environment.etc."ssh/shosts.equiv".text = concatStringsSep "\n" (concatMap
  28. (node: [
  29. node.config.networking.hostName
  30. node.config.networking.fqdn
  31. ])
  32. (attrValues nodes));
  33. }