2023-09-25 01:35:11 +02:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
fileSystems = {
|
|
|
|
"/mnt/data" = {
|
|
|
|
device = "/dev/disk/by-label/data";
|
|
|
|
fsType = "ext4";
|
|
|
|
autoFormat = true;
|
|
|
|
autoResize = true;
|
|
|
|
};
|
|
|
|
"/mnt/paperless-consume" = {
|
|
|
|
device = "//10.201.40.10/paperless-consume";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [
|
|
|
|
"username=paperless"
|
|
|
|
"credentials=/secrets/paperless-samba-credentials.secret"
|
|
|
|
"iocharset=utf8"
|
|
|
|
"vers=3.1.1"
|
|
|
|
"uid=paperless"
|
|
|
|
"gid=paperless"
|
|
|
|
"_netdev"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"/var/lib/paperless" = {
|
|
|
|
depends = [ "/mnt/data" ];
|
|
|
|
device = "/mnt/data/paperless";
|
|
|
|
fsType = "none";
|
2023-12-05 04:17:09 +01:00
|
|
|
options = [ "bind" ];
|
2023-09-25 01:35:11 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|