2023-08-29 16:10:22 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
fileSystems."/mnt/data" = {
|
|
|
|
device = "/dev/disk/by-label/data";
|
|
|
|
fsType = "ext4";
|
|
|
|
autoFormat = true;
|
|
|
|
autoResize = true;
|
|
|
|
};
|
|
|
|
fileSystems."/var/lib/matrix-synapse/media_store" = {
|
|
|
|
depends = [ "/mnt/data" ];
|
|
|
|
device = "/mnt/data/media_store";
|
|
|
|
fsType = "none";
|
2023-12-05 04:16:44 +01:00
|
|
|
options = [ "bind" ];
|
2023-08-29 16:10:22 +02:00
|
|
|
};
|
|
|
|
fileSystems."/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}" = {
|
|
|
|
depends = [ "/mnt/data" ];
|
|
|
|
device = "/mnt/data/database";
|
|
|
|
fsType = "none";
|
2023-12-05 04:16:44 +01:00
|
|
|
options = [ "bind" ];
|
2023-08-29 16:10:22 +02:00
|
|
|
};
|
|
|
|
}
|