accidentally dropped a commit

This commit is contained in:
2026-07-29 21:02:44 +01:00
parent 232321486e
commit 97f905e3f4
4 changed files with 52 additions and 257 deletions

View File

@@ -0,0 +1,49 @@
{
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"
];
};
};
});
}