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.

30 lines
508 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 year ago
  1. { id, ... }:
  2. { lib, config, ... }:
  3. with lib;
  4. {
  5. imports = [
  6. ./hardware.nix
  7. ./disk.nix
  8. ./network.nix
  9. ];
  10. deployment = {
  11. targetHost = "10.32.30.94";
  12. targetUser = "root";
  13. tags = [ "node" ];
  14. };
  15. networking.hostName = "node-${fixedWidthNumber 2 id}";
  16. nix.settings = {
  17. substituters = [
  18. "http://cache.${config.networking.domain}"
  19. ];
  20. trusted-public-keys = [
  21. "cache.${config.networking.domain}:dc2abEGJAQfaZiBXhjvjPU0jx/wosQwAOQoz48/G6cA="
  22. ];
  23. };
  24. }