nixos-configs/configurations/nos/modules/mergerfs.nix

82 lines
2.1 KiB
Nix
Raw Permalink Normal View History

{pkgs, ...}: let
fsPkgs = builtins.attrValues {inherit (pkgs) mergerfs cifs-utils;};
2024-02-18 23:01:59 -05:00
in {
system.fsPackages = fsPkgs;
environment.systemPackages = fsPkgs;
fileSystems = {
"MergerFS Data" = {
mountPoint = "/data";
fsType = "fuse.mergerfs";
device = "/mnt/drives/?tb*";
options = [
"cache.files=partial"
"allow_other"
"category.create=lfs"
"minfreespace=50G"
"fsname=mergerfs"
];
};
2024-02-29 02:34:48 -05:00
"d1 3tb-1" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/3tb1";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N1236473-part1";
2024-02-18 23:01:59 -05:00
};
2024-02-29 02:34:48 -05:00
"d2 3tb-2" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/3tb2";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N1233153-part1";
2024-02-18 23:01:59 -05:00
};
2024-02-29 02:34:48 -05:00
"d3 4tb-1" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/4tb1";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD40EZAZ-19SF3B0_WD-WX32D81DE8RD-part1";
2024-02-18 23:01:59 -05:00
};
2024-02-29 02:34:48 -05:00
"d4 4tb-2" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/4tb2";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD40EZAZ-19SF3B0_WD-WX32D81DE6Z0-part1";
2024-02-18 23:01:59 -05:00
};
2024-02-29 02:34:48 -05:00
"d5 8tb-1" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/8tb1";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD8003FFBX-68B9AN0_VAJ99UDL-part1";
2024-02-18 23:01:59 -05:00
};
2024-02-29 02:34:48 -05:00
"p0 8tb-2" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/parity0";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD8003FFBX-68B9AN0_VDGL4HZD-part1";
2024-02-18 23:01:59 -05:00
};
2024-02-29 02:34:48 -05:00
"p1 8tb-3" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/parity1";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD80EFZZ-68BTXN0_WD-CA13WUYK-part1";
2024-02-18 23:01:59 -05:00
};
2024-02-29 02:34:48 -05:00
"d6 8tb-4" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/8tb4";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD80EAZZ-00BKLB0_WD-CA1AVU7K-part1";
2024-02-18 23:01:59 -05:00
};
2024-02-29 02:34:48 -05:00
"d7 8tb-5" = {
2024-02-18 23:01:59 -05:00
mountPoint = "/mnt/drives/8tb5";
fsType = "ext4";
device = "/dev/disk/by-id/ata-WDC_WD80EAZZ-00BKLB0_WD-CA1GN0GK-part1";
2024-02-18 23:01:59 -05:00
};
2024-03-02 02:59:40 -05:00
"d8 8tb-6" = {
mountPoint = "/mnt/drives/8tb6";
fsType = "ext4";
device = "/dev/disk/by-id/ata-ST8000DM004-2U9188_ZR15JMHV-part1";
};
2024-02-18 23:01:59 -05:00
};
}