forked from jan-leila/nix-config
		
	
		
			
				
	
	
		
			72 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {...}: {
 | |
|   boot.supportedFilesystems = ["nfs"];
 | |
| 
 | |
|   fileSystems = {
 | |
|     "/mnt/leyla_documents" = {
 | |
|       device = "defiant:/exports/leyla_documents";
 | |
|       fsType = "nfs";
 | |
|       options = [
 | |
|         "x-systemd.automount"
 | |
|         "noauto"
 | |
|         "noatime"
 | |
|         "nofail"
 | |
|         "soft"
 | |
|         "intr" # Allow interruption of NFS calls
 | |
|         "timeo=50" # 5 second timeout (50 deciseconds) - longer than mobile
 | |
|         "retrans=3" # 3 retries for desktop
 | |
|         "x-systemd.idle-timeout=600" # 10 minute idle timeout for desktop
 | |
|         "x-systemd.device-timeout=30" # 30 second device timeout
 | |
|         "bg" # Background mount - don't block boot
 | |
|         "fsc" # Enable caching
 | |
|         "_netdev" # Network device - wait for network
 | |
|         "x-systemd.requires=network-online.target" # Require network to be online
 | |
|         "x-systemd.after=network-online.target" # Start after network is online
 | |
|       ];
 | |
|     };
 | |
| 
 | |
|     "/mnt/users_documents" = {
 | |
|       device = "defiant:/exports/users_documents";
 | |
|       fsType = "nfs";
 | |
|       options = [
 | |
|         "x-systemd.automount"
 | |
|         "noauto"
 | |
|         "nofail"
 | |
|         "soft"
 | |
|         "intr"
 | |
|         "timeo=50"
 | |
|         "retrans=3"
 | |
|         "x-systemd.idle-timeout=600"
 | |
|         "bg"
 | |
|         "fsc"
 | |
|         "_netdev"
 | |
|         "x-systemd.requires=network-online.target"
 | |
|         "x-systemd.after=network-online.target"
 | |
|       ];
 | |
|     };
 | |
| 
 | |
|     "/mnt/media" = {
 | |
|       device = "defiant:/exports/media";
 | |
|       fsType = "nfs";
 | |
|       options = [
 | |
|         "x-systemd.automount"
 | |
|         "noauto"
 | |
|         "noatime"
 | |
|         "nofail"
 | |
|         "soft"
 | |
|         "intr"
 | |
|         "timeo=50"
 | |
|         "retrans=3"
 | |
|         "x-systemd.idle-timeout=600"
 | |
|         "x-systemd.device-timeout=30"
 | |
|         "bg"
 | |
|         # Desktop-optimized read settings
 | |
|         "rsize=32768" # Larger read size for desktop
 | |
|         "wsize=32768" # Larger write size for desktop
 | |
|         "fsc"
 | |
|         "_netdev"
 | |
|         "x-systemd.requires=network-online.target"
 | |
|         "x-systemd.after=network-online.target"
 | |
|       ];
 | |
|     };
 | |
|   };
 | |
| }
 |