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.

57 lines
933 B

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