2024-02-28 02:24:35 -05:00
|
|
|
{pkgs, ...}: let
|
|
|
|
fsPkgs = with pkgs; [mergerfs cifs-utils];
|
2024-02-18 23:01:59 -05:00
|
|
|
in {
|
|
|
|
system.fsPackages = fsPkgs;
|
|
|
|
environment.systemPackages = fsPkgs;
|
|
|
|
|
2024-02-28 02:24:35 -05:00
|
|
|
fileSystems."/data" = {
|
|
|
|
device = "//10.0.0.121/public";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [
|
|
|
|
"x-systemd.automount"
|
|
|
|
"noauto"
|
|
|
|
"x-systemd.idle-timeout=60"
|
|
|
|
"x-systemd.device-timeout=5s"
|
|
|
|
"x-systemd.mount-timeout=5s"
|
|
|
|
"uid=1000"
|
|
|
|
"gid=1000"
|
|
|
|
"credentials=${builtins.toFile "creds.txt" ''
|
|
|
|
username=root
|
|
|
|
domain=WORKGROUP
|
|
|
|
''}"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
2024-02-18 23:01:59 -05:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
"3tb-1" = {
|
|
|
|
mountPoint = "/mnt/drives/3tb1";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N1236473-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"3tb-2" = {
|
|
|
|
mountPoint = "/mnt/drives/3tb2";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N1233153-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"4tb-1" = {
|
|
|
|
mountPoint = "/mnt/drives/4tb1";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD40EZAZ-19SF3B0_WD-WX32D81DE8RD-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"4tb-2" = {
|
|
|
|
mountPoint = "/mnt/drives/4tb2";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD40EZAZ-19SF3B0_WD-WX32D81DE6Z0-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"8tb-1" = {
|
|
|
|
mountPoint = "/mnt/drives/8tb1";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD8003FFBX-68B9AN0_VAJ99UDL-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"8tb-2 parity0" = {
|
|
|
|
mountPoint = "/mnt/drives/parity0";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD8003FFBX-68B9AN0_VDGL4HZD-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"8tb-3 parity1" = {
|
|
|
|
mountPoint = "/mnt/drives/parity1";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD80EFZZ-68BTXN0_WD-CA13WUYK-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"8tb-4" = {
|
|
|
|
mountPoint = "/mnt/drives/8tb4";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD80EAZZ-00BKLB0_WD-CA1AVU7K-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
"8tb-5" = {
|
|
|
|
mountPoint = "/mnt/drives/8tb5";
|
2024-02-28 02:24:35 -05:00
|
|
|
fsType = "ext4";
|
|
|
|
device = "/dev/disk/by-id/ata-WDC_WD80EAZZ-00BKLB0_WD-CA1GN0GK-part1";
|
2024-02-18 23:01:59 -05:00
|
|
|
};
|
|
|
|
};
|
2024-02-28 02:24:35 -05:00
|
|
|
*/
|
2024-02-18 23:01:59 -05:00
|
|
|
}
|