mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:59:23 +08:00
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixos =
|
|
{
|
|
system =
|
|
{
|
|
fileSystems =
|
|
{
|
|
mount =
|
|
{
|
|
vfat."/dev/disk/by-partlabel/test-boot" = "/boot";
|
|
btrfs."/dev/disk/by-partlabel/test-root1" = { "/nix" = "/nix"; "/nix/rootfs/current" = "/"; };
|
|
};
|
|
rollingRootfs = {};
|
|
};
|
|
nixpkgs.march = "znver4";
|
|
networking = {};
|
|
};
|
|
hardware.cpus = [ "amd" ];
|
|
services =
|
|
{
|
|
sshd = {};
|
|
nixvirt =
|
|
{
|
|
subnet = 123;
|
|
instance =
|
|
{
|
|
chn =
|
|
{
|
|
hardware = { memoryMB = 2048; cpus = 4; };
|
|
network =
|
|
{
|
|
address = 2;
|
|
portForward = { tcp = [{ host = 5693; guest = 22; }]; web = [ "example.chn.moe" ]; };
|
|
};
|
|
};
|
|
chn2 =
|
|
{
|
|
owner = "chn";
|
|
hardware = { memoryMB = 2048; cpus = 4; };
|
|
network = { address = 3; portForward.tcp = [{ host = 5694; guest = 22; }]; };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|