fix for nfs share
This commit is contained in:
parent
44fe27911a
commit
4f8c9c85aa
|
@ -39,8 +39,8 @@
|
|||
};
|
||||
|
||||
# Bind mount for nfs export
|
||||
fileSystems."/nfs_export" = {
|
||||
device = "zdata/zdata/nfs";
|
||||
fileSystems."/nfs_export/kage" = {
|
||||
device = "zdata/zdata/kage";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/home/nate/nfs" = {
|
||||
device = "192.168.1.169:/nfs_export";
|
||||
fileSystems."/home/nate/kage" = {
|
||||
device = "192.168.1.169:/kage";
|
||||
fsType = "nfs";
|
||||
options = [ "nfsvers=4.2" "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ]; # lazy mounting and auto disconnect after 600 seconds
|
||||
};
|
||||
|
|
|
@ -73,7 +73,7 @@ in
|
|||
services.nfs.server = lib.mkIf srvConfig.nfsEnable {
|
||||
enable = true;
|
||||
exports = ''
|
||||
/nfs_export 192.168.1.149(rw,fsid=0,no_subtree_check)
|
||||
/kage 192.168.1.149(rw,fsid=0,no_subtree_check)
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user