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.

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