mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 09:29:02 +08:00
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
|
inputs:
|
||
|
{
|
||
|
config =
|
||
|
{
|
||
|
nixos =
|
||
|
{
|
||
|
system =
|
||
|
{
|
||
|
fileSystems =
|
||
|
{
|
||
|
mount =
|
||
|
{
|
||
|
btrfs =
|
||
|
{
|
||
|
"/dev/disk/by-uuid/24577c0e-d56b-45ba-8b36-95a848228600"."/boot" = "/boot";
|
||
|
"/dev/mapper/root" = { "/nix" = "/nix"; "/nix/rootfs/current" = "/"; };
|
||
|
};
|
||
|
};
|
||
|
decrypt.manual =
|
||
|
{
|
||
|
enable = true;
|
||
|
devices."/dev/disk/by-uuid/4f8aca22-9ec6-4fad-b21a-fd9d8d0514e8" = { mapper = "root"; ssd = true; };
|
||
|
delayedMount = [ "/" ];
|
||
|
};
|
||
|
swap = [ "/nix/swap/swap" ];
|
||
|
rollingRootfs = {};
|
||
|
};
|
||
|
grub.installDevice = "/dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:0";
|
||
|
nixpkgs.march = "znver2";
|
||
|
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
|
||
|
initrd.sshd.enable = true;
|
||
|
networking = { hostname = "vps4"; networkd = {}; };
|
||
|
};
|
||
|
packages.packageSet = "server";
|
||
|
services =
|
||
|
{
|
||
|
snapper.enable = true;
|
||
|
sshd = {};
|
||
|
fail2ban = {};
|
||
|
beesd.instances.root = { device = "/"; hashTableSizeMB = 64; };
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|