Seperate /mnt/important to /mnt/seagate-8tb-1 and /mnt/seagate-8tb-2

This commit is contained in:
batteredbunny 2024-04-27 02:51:34 +03:00
parent 5c1512b77f
commit 2b554f44a0

View file

@ -105,8 +105,16 @@ in {
};
fileSystems = {
"/mnt/seagate-8tb-1" = {
device = "/dev/disk/by-uuid/94471772-5f7e-4a59-b731-4cac02cb1c86";
fsType = "btrfs";
};
"/mnt/seagate-8tb-2" = {
device = "/dev/disk/by-uuid/e970d4e0-8019-4d04-9a23-e89e5c82081d";
fsType = "btrfs";
};
"/mnt/drive4" = {
# TODO: remove
# TODO: replace with two above disks
device = "/dev/disk/by-uuid/a7874217-07af-485c-9e60-2370c305771e"; # 18tb hdd
fsType = "btrfs";
};
@ -122,14 +130,17 @@ in {
device = "/dev/disk/by-uuid/23aa13b8-3e1a-4cd7-890d-68a54d8f13fa"; # 16tb hdd
fsType = "btrfs";
};
"/mnt/media" = {
device = "/mnt/drive1/media:/mnt/drive2/media:/mnt/drive3/media:/mnt/drive4/media";
"/mnt/media" = rec {
device = lib.concatStringsSep ":" depends;
fsType = "fuse.mergerfs";
depends = [
"/mnt/drive1"
"/mnt/drive2"
"/mnt/drive3"
"/mnt/drive4"
"/mnt/drive1/media"
"/mnt/drive2/media"
"/mnt/drive3/media"
"/mnt/drive4/media"
"/mnt/seagate-8tb-1/media"
"/mnt/seagate-8tb-2/media"
];
options = [
"cache.files=partial"