mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 07:49:25 +08:00
36 lines
985 B
Nix
36 lines
985 B
Nix
inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixos =
|
|
{
|
|
model.cluster.nodeType = "master";
|
|
system =
|
|
{
|
|
nixpkgs.march = "skylake";
|
|
network =
|
|
{
|
|
static.eno2 = { ip = "192.168.178.1"; mask = 24; };
|
|
masquerade = [ "eno2" ];
|
|
trust = [ "eno2" ];
|
|
};
|
|
nix.remote.slave = {};
|
|
fileSystems.swap = [ "/dev/disk/by-partlabel/srv2-node0-swap" ];
|
|
};
|
|
services =
|
|
{
|
|
xray.client = { dnsmasq = { extraInterfaces = [ "eno2" ]; hosts."hpc.xmu.edu.cn" = "121.192.191.11"; }; };
|
|
beesd."/" = { hashTableSizeMB = 16 * 128; loadAverage = 8; };
|
|
xrdp = { enable = true; hostname = [ "srv2.chn.moe" ]; };
|
|
samba = { hostsAllowed = ""; shares = { home.path = "/home"; root.path = "/"; }; };
|
|
groupshare = {};
|
|
hpcstat = {};
|
|
ollama = {};
|
|
sshd = { groupBanner = true; motd = true; };
|
|
speedtest = {};
|
|
};
|
|
packages.desktp = {};
|
|
};
|
|
};
|
|
}
|