fixed nfs mounts
This commit is contained in:
		
							parent
							
								
									1c079fa479
								
							
						
					
					
						commit
						ca2b188560
					
				
					 5 changed files with 120 additions and 15 deletions
				
			
		|  | @ -140,12 +140,20 @@ | |||
|       options = [ | ||||
|         "x-systemd.automount" | ||||
|         "noauto" | ||||
|         "user" | ||||
|         "noatime" | ||||
|         "nofail" | ||||
|         "soft" | ||||
|         "x-systemd.idle-timeout=600" | ||||
|         "fsc" | ||||
|         "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 | ||||
|         "x-systemd.mount-timeout=60" # 60 second mount timeout for desktop | ||||
|       ]; | ||||
|     }; | ||||
| 
 | ||||
|  | @ -155,11 +163,17 @@ | |||
|       options = [ | ||||
|         "x-systemd.automount" | ||||
|         "noauto" | ||||
|         "user" | ||||
|         "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" | ||||
|       ]; | ||||
|     }; | ||||
| 
 | ||||
|  | @ -169,21 +183,30 @@ | |||
|       options = [ | ||||
|         "x-systemd.automount" | ||||
|         "noauto" | ||||
|         "user" | ||||
|         "noatime" | ||||
|         "nofail" | ||||
|         "soft" | ||||
|         "intr" | ||||
|         "timeo=50" | ||||
|         "retrans=3" | ||||
|         "x-systemd.idle-timeout=600" | ||||
|         "noatime" | ||||
|         "nodiratime" | ||||
|         "relatime" | ||||
|         "rsize=32768" | ||||
|         "wsize=32768" | ||||
|         "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" | ||||
|         "x-systemd.mount-timeout=60" | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   # Enable network-online.target for better network dependency handling | ||||
|   systemd.services.NetworkManager-wait-online.enable = true; | ||||
| 
 | ||||
|   environment.systemPackages = with pkgs; [ | ||||
|     cachefilesd | ||||
|   ]; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue