31 lines
738 B
Nix
31 lines
738 B
Nix
{ ... }:
|
|
{
|
|
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";
|
|
options = [ "bind" "X-mount.owner=paperless" "X-mount.group=paperless" ];
|
|
};
|
|
};
|
|
}
|