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.

58 lines
949 B

1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
  1. { pkgs, config, inputs, modulesPath, machine, ... }:
  2. {
  3. imports = [
  4. ./network.nix
  5. ./users.nix
  6. ./ssh.nix
  7. ./rdma.nix
  8. ./ssl.nix
  9. ./slurm.nix
  10. "${modulesPath}/profiles/headless.nix"
  11. "${modulesPath}/profiles/all-hardware.nix"
  12. ];
  13. sops = {
  14. defaultSopsFile = /${machine.path}/secrets.yaml;
  15. defaultSopsFormat = "yaml";
  16. age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
  17. };
  18. gather = {
  19. target = part: "gathered/${config.networking.hostName}/${part}";
  20. root = ../.;
  21. };
  22. time.timeZone = "Europe/Berlin";
  23. console.keyMap = "de";
  24. environment.systemPackages = with pkgs; [
  25. openmpi
  26. vim
  27. wget
  28. curl
  29. tmux
  30. fd
  31. ripgrep
  32. zlib
  33. htop
  34. iotop
  35. iftop
  36. git
  37. ];
  38. nix.nixPath = [
  39. "nixpkgs=${inputs.nixpkgs}"
  40. ];
  41. # Performance FTW!
  42. boot.kernelParams = [
  43. "mitigations=off"
  44. ];
  45. services.haveged.enable = true;
  46. system.stateVersion = "22.11";
  47. }