2024-01-16 22:41:03 +08:00
|
|
|
inputs:
|
|
|
|
{
|
|
|
|
config =
|
|
|
|
{
|
|
|
|
nixos =
|
|
|
|
{
|
|
|
|
system =
|
|
|
|
{
|
|
|
|
fileSystems =
|
|
|
|
{
|
|
|
|
mount =
|
|
|
|
{
|
|
|
|
vfat."/dev/disk/by-uuid/13BC-F0C9" = "/boot/efi";
|
|
|
|
btrfs =
|
|
|
|
{
|
|
|
|
"/dev/disk/by-uuid/0e184f3b-af6c-4f5d-926a-2559f2dc3063"."/boot" = "/boot";
|
|
|
|
"/dev/mapper/nix"."/nix" = "/nix";
|
|
|
|
"/dev/mapper/root1" =
|
|
|
|
{
|
|
|
|
"/nix/rootfs" = "/nix/rootfs";
|
|
|
|
"/nix/persistent" = "/nix/persistent";
|
|
|
|
"/nix/nodatacow" = "/nix/nodatacow";
|
|
|
|
"/nix/rootfs/current" = "/";
|
|
|
|
"/nix/backup" = "/nix/backup";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
decrypt.manual =
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
devices =
|
|
|
|
{
|
|
|
|
"/dev/disk/by-uuid/5cf1d19d-b4a5-4e67-8e10-f63f0d5bb649".mapper = "root1";
|
|
|
|
"/dev/disk/by-uuid/aa684baf-fd8a-459c-99ba-11eb7636cb0d".mapper = "root2";
|
|
|
|
"/dev/disk/by-uuid/a779198f-cce9-4c3d-a64a-9ec45f6f5495" = { mapper = "nix"; ssd = true; };
|
|
|
|
};
|
|
|
|
delayedMount = [ "/" "/nix" ];
|
|
|
|
};
|
|
|
|
swap = [ "/nix/swap/swap" ];
|
2024-03-15 11:03:50 +08:00
|
|
|
rollingRootfs.waitDevices = [ "/dev/mapper/root2" ];
|
2024-01-16 22:41:03 +08:00
|
|
|
};
|
|
|
|
initrd.sshd.enable = true;
|
|
|
|
grub.installDevice = "efi";
|
|
|
|
nixpkgs.march = "silvermont";
|
|
|
|
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
|
2024-03-21 21:49:29 +08:00
|
|
|
networking = { hostname = "nas"; networkd = {}; };
|
2024-01-16 22:41:03 +08:00
|
|
|
};
|
2024-02-15 23:17:20 +08:00
|
|
|
hardware = { cpus = [ "intel" ]; gpu.type = "intel"; };
|
2024-01-16 22:41:03 +08:00
|
|
|
services =
|
|
|
|
{
|
2024-02-23 21:46:13 +08:00
|
|
|
snapper.enable = true;
|
2024-01-16 22:41:03 +08:00
|
|
|
samba =
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
hostsAllowed = "192.168. 127.";
|
|
|
|
shares = { home.path = "/home"; root.path = "/"; };
|
|
|
|
};
|
2024-03-31 14:17:00 +08:00
|
|
|
sshd = {};
|
2024-03-28 10:45:38 +08:00
|
|
|
xray.client.dae.wanInterface = [ "enp3s0" ];
|
2024-03-20 09:28:34 +08:00
|
|
|
groupshare = {};
|
2024-01-16 22:41:03 +08:00
|
|
|
smartd.enable = true;
|
2024-03-24 18:19:58 +08:00
|
|
|
beesd.instances =
|
2024-01-16 22:41:03 +08:00
|
|
|
{
|
2024-03-24 18:19:58 +08:00
|
|
|
root = { device = "/"; hashTableSizeMB = 4096; threads = 4; };
|
|
|
|
nix = { device = "/nix"; hashTableSizeMB = 128; };
|
2024-01-16 22:41:03 +08:00
|
|
|
};
|
|
|
|
nginx = { enable = true; applications.webdav.instances."local.webdav.chn.moe" = {}; };
|
|
|
|
wireguard =
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
peers = [ "vps6" ];
|
|
|
|
publicKey = "xCYRbZEaGloMk7Awr00UR3JcDJy4AzVp4QvGNoyEgFY=";
|
|
|
|
wireguardIp = "192.168.83.4";
|
|
|
|
};
|
2024-05-04 15:18:03 +08:00
|
|
|
hpcstat = {};
|
2024-01-16 22:41:03 +08:00
|
|
|
};
|
2024-03-19 20:01:45 +08:00
|
|
|
user.users = [ "chn" "xll" "zem" "yjq" "gb" ];
|
2024-01-16 22:41:03 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|