mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-09 03:56:03 +01:00
it works :)
This commit is contained in:
parent
1ca5d36f38
commit
dfa4a15e0c
1 changed files with 19 additions and 0 deletions
|
|
@ -79,24 +79,43 @@ in
|
||||||
nfsOptions = mkOption {
|
nfsOptions = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = [
|
default = [
|
||||||
|
/* Disable file locking */
|
||||||
"nolock"
|
"nolock"
|
||||||
|
/* Mount the filesystem read-write */
|
||||||
"rw"
|
"rw"
|
||||||
|
/* Use NFS version 3 */
|
||||||
"vers=3"
|
"vers=3"
|
||||||
|
/* Set the read buffer size to 131072 bytes */
|
||||||
"rsize=131072"
|
"rsize=131072"
|
||||||
|
/* Set the write buffer size to 131072 bytes */
|
||||||
"wsize=131072"
|
"wsize=131072"
|
||||||
|
/* Set the maximum filename length to 255 characters */
|
||||||
"namlen=255"
|
"namlen=255"
|
||||||
|
/* Use hard mounts (retry indefinitely on failure) */
|
||||||
"hard"
|
"hard"
|
||||||
|
/* Disable Access Control Lists */
|
||||||
"noacl"
|
"noacl"
|
||||||
|
/* Use TCP as the transport protocol */
|
||||||
"proto=tcp"
|
"proto=tcp"
|
||||||
|
/* Set the NFS timeout to 11 tenths of a second */
|
||||||
"timeo=11"
|
"timeo=11"
|
||||||
|
/* Set the number of NFS retransmissions to 3 */
|
||||||
"retrans=3"
|
"retrans=3"
|
||||||
|
/* Use the 'sys' security flavor */
|
||||||
"sec=sys"
|
"sec=sys"
|
||||||
|
/* Specify the NFS server address */
|
||||||
"mountaddr=192.168.0.108"
|
"mountaddr=192.168.0.108"
|
||||||
|
/* Use NFS mount protocol version 3 */
|
||||||
"mountvers=3"
|
"mountvers=3"
|
||||||
|
/* Use TCP for the mount protocol */
|
||||||
"mountproto=tcp"
|
"mountproto=tcp"
|
||||||
|
/* Enable local locking */
|
||||||
"local_lock=all"
|
"local_lock=all"
|
||||||
|
/* Specify the NFS server address */
|
||||||
"addr=192.168.0.108"
|
"addr=192.168.0.108"
|
||||||
|
/* Do not update inode access times on reads */
|
||||||
"noatime"
|
"noatime"
|
||||||
|
/* Do not update directory inode access times on reads */
|
||||||
"nodiratime"
|
"nodiratime"
|
||||||
];
|
];
|
||||||
description = ''
|
description = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue