mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:55:22 +08:00
36 lines
920 B
Nix
36 lines
920 B
Nix
inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixos =
|
|
{
|
|
model = { type = "server"; private = true; };
|
|
system =
|
|
{
|
|
fileSystems =
|
|
{
|
|
mount =
|
|
{
|
|
vfat."/dev/disk/by-uuid/627D-1FAA" = "/boot";
|
|
btrfs."/dev/mapper/root3" = { "/nix" = "/nix"; "/nix/rootfs/current" = "/"; };
|
|
};
|
|
swap = [ "/dev/mapper/swap" ];
|
|
rollingRootfs.waitDevices = [ "/dev/mapper/root4" ];
|
|
};
|
|
initrd.sshd = {};
|
|
nixpkgs.march = "silvermont";
|
|
network = {};
|
|
};
|
|
hardware.gpu.type = "intel";
|
|
services =
|
|
{
|
|
sshd = {};
|
|
xray = { client.dnsmasq.hosts."git.nas.chn.moe" = "127.0.0.1"; xmuServer = {}; };
|
|
beesd."/" = { hashTableSizeMB = 10 * 128; threads = 4; };
|
|
nfs."/" = [(inputs.topInputs.self.config.dns."chn.moe".getAddress "wg1.pc")];
|
|
speedtest = {};
|
|
};
|
|
};
|
|
};
|
|
}
|