mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-11 17:29:30 +08:00
42 lines
976 B
Nix
42 lines
976 B
Nix
inputs:
|
||
{
|
||
config =
|
||
{
|
||
nixos =
|
||
{
|
||
model.type = "server";
|
||
system =
|
||
{
|
||
fileSystems =
|
||
{
|
||
mount =
|
||
{
|
||
vfat."/dev/disk/by-partlabel/srv3-boot" = "/boot";
|
||
btrfs."/dev/mapper/root1" = { "/nix" = "/nix"; "/nix/rootfs/current" = "/"; };
|
||
};
|
||
swap = [ "/dev/mapper/swap" ];
|
||
rollingRootfs = {};
|
||
};
|
||
nixpkgs.march = "haswell";
|
||
initrd.sshd = {};
|
||
networking.static.eno1 =
|
||
{
|
||
ip = "23.135.236.216";
|
||
mask = 24;
|
||
gateway = "23.135.236.1";
|
||
dns = "8.8.8.8";
|
||
};
|
||
};
|
||
hardware.cpus = [ "intel" ];
|
||
services =
|
||
{
|
||
# 大部分空间用于存储虚拟机(nodatacow),其它内容不多
|
||
beesd."/".hashTableSizeMB = 32;
|
||
sshd = {};
|
||
};
|
||
virtualization.kvmHost = { enable = true; gui = true; };
|
||
user.users = [ "chn" "aleksana" ];
|
||
};
|
||
};
|
||
}
|