mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:39:05 +08:00
39 lines
961 B
Nix
39 lines
961 B
Nix
inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixos =
|
|
{
|
|
system =
|
|
{
|
|
nix.marches = [ "cascadelake" "broadwell" ];
|
|
nixpkgs.march = "cascadelake";
|
|
networking.networkd.static =
|
|
{
|
|
eno145 = { ip = "192.168.1.10"; mask = 24; gateway = "192.168.1.1"; };
|
|
eno146 = { ip = "192.168.178.1"; mask = 24; };
|
|
};
|
|
cluster.nodeType = "master";
|
|
};
|
|
services =
|
|
{
|
|
xray.client.enable = true;
|
|
beesd.instances.root = { device = "/"; hashTableSizeMB = 512; threads = 4; };
|
|
wireguard =
|
|
{
|
|
enable = true;
|
|
peers = [ "vps6" ];
|
|
publicKey = "Br+ou+t9M9kMrnNnhTvaZi2oNFRygzebA1NqcHWADWM=";
|
|
wireguardIp = "192.168.83.9";
|
|
};
|
|
slurm =
|
|
{
|
|
enable = true;
|
|
cpu = { sockets = 4; cores = 20; threads = 2; mpiThreads = 8; openmpThreads = 10; };
|
|
memoryMB = 122880;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|