21 lines
		
	
	
	
		
			547 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			547 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ 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";
 | 
						|
    options = [ "bind" ];
 | 
						|
  };
 | 
						|
  fileSystems."/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}" = {
 | 
						|
    depends = [ "/mnt/data" ];
 | 
						|
    device = "/mnt/data/database";
 | 
						|
    fsType = "none";
 | 
						|
    options = [ "bind" ];
 | 
						|
  };
 | 
						|
}
 |