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
947 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 year ago
  1. { pkgs, config, inputs, modulesPath, machine, ... }:
  2. {
  3. imports = [
  4. ./network.nix
  5. ./users.nix
  6. ./userenv.nix
  7. ./ssh.nix
  8. ./rdma.nix
  9. ./ssl.nix
  10. ./slurm.nix
  11. "${modulesPath}/profiles/headless.nix"
  12. "${modulesPath}/profiles/all-hardware.nix"
  13. ];
  14. sops = {
  15. defaultSopsFile = /${machine.path}/secrets.yaml;
  16. defaultSopsFormat = "yaml";
  17. age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
  18. };
  19. gather = {
  20. target = part: "gathered/${config.networking.hostName}/${part}";
  21. root = ../.;
  22. };
  23. time.timeZone = "Europe/Berlin";
  24. console.keyMap = "de";
  25. environment.systemPackages = with pkgs; [
  26. vim
  27. wget
  28. curl
  29. tmux
  30. fd
  31. ripgrep
  32. htop
  33. iotop
  34. iftop
  35. file
  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. }