Add nfs mount
This commit is contained in:
		| @@ -3,6 +3,7 @@ | |||||||
|     ./configuration.nix |     ./configuration.nix | ||||||
|     ./hardware-configuration.nix |     ./hardware-configuration.nix | ||||||
|     ./steamuser.nix |     ./steamuser.nix | ||||||
|  |     ./nfs.nix | ||||||
|     ../../system |     ../../system | ||||||
|     ../../home |     ../../home | ||||||
|   ]; |   ]; | ||||||
|   | |||||||
							
								
								
									
										19
									
								
								hosts/gunter/nfs.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								hosts/gunter/nfs.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | |||||||
|  | { pkgs, ... }: { | ||||||
|  |   services.rpcbind.enable = true; | ||||||
|  |   systemd.mounts = [{ | ||||||
|  |     type = "nfs4"; | ||||||
|  |     mountConfig = { | ||||||
|  |       Options = "rw,soft,noatime"; | ||||||
|  |     }; | ||||||
|  |     what = "nas.home.2rjus.net:/mnt/hdd-pool/media"; | ||||||
|  |     where = "/mnt/nas/media"; | ||||||
|  |   }]; | ||||||
|  |  | ||||||
|  |   systemd.automounts = [{ | ||||||
|  |     wantedBy = [ "multi-user.target" ]; | ||||||
|  |     automountConfig = { | ||||||
|  |       TimeoutIdleSec = "5min"; | ||||||
|  |     }; | ||||||
|  |     where = "/mnt/nas/media"; | ||||||
|  |   }]; | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user