mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 05:49:23 +08:00
34 lines
700 B
Nix
34 lines
700 B
Nix
inputs:
|
|
{
|
|
config =
|
|
{
|
|
nixos =
|
|
{
|
|
system =
|
|
{
|
|
fileSystems =
|
|
{
|
|
mount =
|
|
{
|
|
btrfs =
|
|
{
|
|
"/dev/disk/by-uuid/403fe853-8648-4c16-b2b5-3dfa88aee351"."/boot" = "/boot";
|
|
"/dev/mapper/root" = { "/nix" = "/nix"; "/nix/rootfs/current" = "/"; };
|
|
};
|
|
};
|
|
swap = [ "/nix/swap/swap" ];
|
|
};
|
|
grub.installDevice = "/dev/disk/by-path/pci-0000:00:04.0";
|
|
nixpkgs.march = "znver2";
|
|
initrd.sshd = {};
|
|
};
|
|
services =
|
|
{
|
|
sshd = {};
|
|
fail2ban = {};
|
|
xray.server.serverName = "xserver2.vps4.chn.moe";
|
|
};
|
|
};
|
|
};
|
|
}
|