mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 05:29:23 +08:00
26 lines
565 B
Nix
26 lines
565 B
Nix
inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixos =
|
|
{
|
|
model.cluster.nodeType = "master";
|
|
system =
|
|
{
|
|
nixpkgs.march = "cascadelake";
|
|
network.settings =
|
|
{
|
|
static =
|
|
{
|
|
eno145 = { ip = "192.168.1.10"; mask = 24; gateway = "192.168.1.1"; };
|
|
eno146 = { ip = "192.168.178.1"; mask = 24; };
|
|
};
|
|
masquerade = [ "eno146" ];
|
|
trust = [ "eno146" ];
|
|
};
|
|
};
|
|
services = { sshd.motd = true; beesd."/" = { hashTableSizeMB = 128; threads = 4; }; };
|
|
};
|
|
};
|
|
}
|