NixOS configs for new Redbrick deployment
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
1.1 KiB

  1. {
  2. tld = "redbricktest.ml";
  3. certsDir = "/var/lib/acme";
  4. webrootDir = "/var/lib/acme/.webroot";
  5. dovecotHost = "192.168.0.135";
  6. dovecotSaslPort = 3659;
  7. dovecotLmtpPort = 24;
  8. # Hard coded otherwise NSCD will crash systems during boot if network is down
  9. # 50 = daedalus
  10. ldapHost = "192.168.0.50";
  11. bondConfig = interfaces: address: {
  12. bonds.bond0 = {
  13. inherit interfaces;
  14. driverOptions = {
  15. mode = "802.3ad";
  16. ad_select = "count";
  17. lacp_rate = "slow";
  18. miimon = "100";
  19. xmit_hash_policy = "layer3+4";
  20. };
  21. };
  22. vlans.internal = {
  23. id = 3;
  24. interface = "bond0";
  25. };
  26. interfaces.bond0.useDHCP = false;
  27. interfaces.internal.ipv4.addresses = [{
  28. inherit address;
  29. prefixLength = 24;
  30. }];
  31. };
  32. managementConfig = address: {
  33. vlans.management = {
  34. id = 4;
  35. interface = "bond0";
  36. };
  37. interfaces.management.ipv4.addresses = [{
  38. inherit address;
  39. prefixLength = 24;
  40. }];
  41. };
  42. zfsMountConfig = device: {
  43. inherit device;
  44. fsType = "zfs";
  45. options = [ "nofail" ];
  46. };
  47. }