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.

31 lines
524 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. ./users.nix
  10. ];
  11. deployment = {
  12. targetHost = "10.32.30.94";
  13. targetUser = "root";
  14. tags = [ "node" ];
  15. };
  16. networking.hostName = "node-${fixedWidthNumber 2 id}";
  17. nix.settings = {
  18. substituters = [
  19. "http://cache.${config.networking.domain}"
  20. ];
  21. trusted-public-keys = [
  22. "cache.${config.networking.domain}:dc2abEGJAQfaZiBXhjvjPU0jx/wosQwAOQoz48/G6cA="
  23. ];
  24. };
  25. }