mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 17:09:22 +08:00
44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixos =
|
|
{
|
|
model.cluster.nodeType = "master";
|
|
system =
|
|
{
|
|
nixpkgs.march = "icelake-server";
|
|
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" ];
|
|
mount.btrfs."/dev/disk/by-partlabel/srv2-node0-root1" =
|
|
{
|
|
"/nix/remote/jykang.xmuhpc" = "/data/gpfs01/jykang/.nix";
|
|
"/nix/remote/xmuhk" = "/public/home/xmuhk/.nix";
|
|
};
|
|
};
|
|
};
|
|
services =
|
|
{
|
|
xray.client.dnsmasq = { extraInterfaces = [ "eno1" "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 = {};
|
|
lumericalLicenseManager.macAddress = "70:20:84:09:a3:52";
|
|
};
|
|
};
|
|
};
|
|
}
|