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.

34 lines
703 B

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. extraConfig = ''
  17. IgnoreRhosts no
  18. Match Group cluster
  19. HostbasedAuthentication yes
  20. HostbasedAcceptedAlgorithms ssh-ed25519*
  21. HostbasedUsesNameFromPacketOnly yes
  22. '';
  23. };
  24. environment.etc."ssh/shosts.equiv".text = concatMapStringsSep "\n"
  25. (node: node.config.networking.fqdn)
  26. (attrValues nodes);
  27. users.groups."cluster" = { };
  28. }