nixos/devices/srv1/node0/default.nix

38 lines
914 B
Nix
Raw Normal View History

2024-09-14 20:44:45 +08:00
inputs:
{
config =
{
nixos =
{
2024-09-15 16:21:23 +08:00
system =
{
nixpkgs.march = "cascadelake";
networking.networkd.static =
{
eno145 = { ip = "192.168.1.10"; mask = 24; gateway = "192.168.1.1"; };
eno146 = { ip = "192.168.178.10"; mask = 24; };
};
};
2024-09-14 20:44:45 +08:00
services =
{
xray.client.enable = true;
2024-09-15 11:50:38 +08:00
beesd.instances.root = { device = "/"; hashTableSizeMB = 512; threads = 4; };
2024-09-14 20:44:45 +08:00
wireguard =
{
enable = true;
peers = [ "vps6" ];
2024-09-15 11:50:38 +08:00
publicKey = "Br+ou+t9M9kMrnNnhTvaZi2oNFRygzebA1NqcHWADWM=";
wireguardIp = "192.168.83.9";
2024-09-14 20:44:45 +08:00
};
2024-09-15 18:26:26 +08:00
slurm =
{
enable = true;
cpu = { sockets = 4; cores = 20; threads = 2; mpiThreads = 8; openmpThreads = 10; };
memoryMB = 122880;
};
2024-09-14 20:44:45 +08:00
};
2024-09-15 13:17:08 +08:00
system.cluster.nodeType = "master";
2024-09-14 20:44:45 +08:00
};
};
}