50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
self,
|
|
moduleWithSystem,
|
|
...
|
|
}: {
|
|
flake.nixosModules.server02DiskConfiguration = moduleWithSystem ({
|
|
pkgs,
|
|
self',
|
|
inputs',
|
|
...
|
|
}: {
|
|
environment.systemPackages = with pkgs; [
|
|
mergerfs
|
|
mergerfs-tools
|
|
];
|
|
fileSystems = {
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/3F6B-F731";
|
|
fsType = "vfat";
|
|
};
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/31a93f8e-a022-4081-a4d8-ab4feb4a6c37";
|
|
fsType = "ext4";
|
|
options = ["rw" "relatime"];
|
|
};
|
|
"/mnt/drive1" = {
|
|
device = "/dev/disk/by-uuid/bccbe88e-6de3-4590-ac19-4ac5edb107d7";
|
|
fsType = "ext4";
|
|
options = ["rw" "relatime"];
|
|
};
|
|
"/mnt/drive2" = {
|
|
device = "/dev/disk/by-uuid/842c9326-9cc8-4c96-82d1-c14a233322b1";
|
|
fsType = "ext4";
|
|
options = ["rw" "relatime"];
|
|
};
|
|
"/mnt/storage" = {
|
|
depends = ["/mnt/drive1" "/mnt/drive2"];
|
|
device = "/mnt/drive1:/mnt/drive2";
|
|
fsType = "fuse.mergerfs";
|
|
options = [
|
|
"cache.files=off"
|
|
"category.create=pfrd"
|
|
"func.getattr=newest"
|
|
"dropcacheonclose=false"
|
|
];
|
|
};
|
|
};
|
|
});
|
|
}
|