88 lines
2.3 KiB
Nix
88 lines
2.3 KiB
Nix
|
|
{ ... }:
|
||
|
|
let
|
||
|
|
excludes = [
|
||
|
|
"/media/usenet/incomplete/"
|
||
|
|
];
|
||
|
|
in
|
||
|
|
{
|
||
|
|
#systemd.timers."snapraid-sync".enable = false; #temporarily
|
||
|
|
#services.snapraid = {
|
||
|
|
# enable = true;
|
||
|
|
# scrub.plan = 5;
|
||
|
|
# parityFiles = [
|
||
|
|
# "/mnt/drives/X2N0A0AZFJDH/snapraid.parity"
|
||
|
|
# ];
|
||
|
|
# dataDisks = {
|
||
|
|
# d1 = "/mnt/drives/43P0A00AFJDH";
|
||
|
|
# d2 = "/mnt/drives/43P0A00FFJDH";
|
||
|
|
# d3 = "/mnt/drives/53F0A0SBFJDH";
|
||
|
|
# d4 = "/mnt/drives/53G0A2AXFJDH";
|
||
|
|
# d5 = "/mnt/drives/53J0A016FJDH";
|
||
|
|
# d6 = "/mnt/drives/92F0A079FJDH";
|
||
|
|
# d7 = "/mnt/drives/X2N0A0AXFJDH";
|
||
|
|
# #d3 = "/mnt/drives/1EKVK21Z";
|
||
|
|
# };
|
||
|
|
# contentFiles = [
|
||
|
|
# "/mnt/snapraid-18tb1.content"
|
||
|
|
# "/mnt/snapraid-18tb2.content"
|
||
|
|
# #"/mnt/drives/43P0A00AFJDH/snapraid.content"
|
||
|
|
# #"/mnt/drives/43P0A00FFJDH/snapraid.content"
|
||
|
|
# #"/mnt/drives/53F0A0SBFJDH/snapraid.content"
|
||
|
|
# #"/mnt/drives/53G0A2AXFJDH/snapraid.content"
|
||
|
|
# #"/mnt/drives/53J0A016FJDH/snapraid.content"
|
||
|
|
# #"/mnt/drives/92F0A079FJDH/snapraid.content"
|
||
|
|
# #"/mnt/drives/X2N0A0AXFJDH/snapraid.content"
|
||
|
|
# #"/mnt/drives/1EKVK21Z/snapraid.content"
|
||
|
|
# ];
|
||
|
|
# exclude = [
|
||
|
|
# "/media/usenet/incomplete/"
|
||
|
|
# ];
|
||
|
|
#};
|
||
|
|
|
||
|
|
imports = [ ./modules/snapraid.nix ];
|
||
|
|
|
||
|
|
services.snapraidnew = {
|
||
|
|
"8tb" = {
|
||
|
|
arrayName = "8tb";
|
||
|
|
enable = true;
|
||
|
|
scrub.plan = 5;
|
||
|
|
parityFiles = [
|
||
|
|
"/mnt/drives/ZA1D9307/snapraid-8tb.parity"
|
||
|
|
];
|
||
|
|
dataDisks = {
|
||
|
|
d1 = "/mnt/drives/1EJZN6MZ";
|
||
|
|
d2 = "/mnt/drives/1EKR513Z";
|
||
|
|
d3 = "/mnt/drives/1EKVK21Z";
|
||
|
|
};
|
||
|
|
contentFiles = [
|
||
|
|
"/mnt/snapraid-8tb1.content"
|
||
|
|
"/mnt/drives/X2N0A0AZFJDH/snapraid-8tb2.content"
|
||
|
|
];
|
||
|
|
exclude = excludes;
|
||
|
|
};
|
||
|
|
"18tb" = {
|
||
|
|
enable = true;
|
||
|
|
scrub.plan = 5;
|
||
|
|
parityFiles = [
|
||
|
|
"/mnt/drives/X2N0A0AZFJDH/snapraid.parity"
|
||
|
|
];
|
||
|
|
dataDisks = {
|
||
|
|
d1 = "/mnt/drives/43P0A00AFJDH";
|
||
|
|
d2 = "/mnt/drives/43P0A00FFJDH";
|
||
|
|
d3 = "/mnt/drives/53F0A0SBFJDH";
|
||
|
|
d4 = "/mnt/drives/53G0A2AXFJDH";
|
||
|
|
d5 = "/mnt/drives/53J0A016FJDH";
|
||
|
|
d6 = "/mnt/drives/92F0A079FJDH";
|
||
|
|
d7 = "/mnt/drives/X2N0A0AXFJDH";
|
||
|
|
};
|
||
|
|
contentFiles = [
|
||
|
|
"/mnt/snapraid-18tb1.content"
|
||
|
|
"/mnt/drives/ZA1D9307/snapraid-18tb2.content"
|
||
|
|
];
|
||
|
|
exclude = excludes;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
# vim: set et ts=2 sw=2 ai:
|