fix for nfs share
This commit is contained in:
parent
44fe27911a
commit
4f8c9c85aa
|
@ -39,8 +39,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Bind mount for nfs export
|
# Bind mount for nfs export
|
||||||
fileSystems."/nfs_export" = {
|
fileSystems."/nfs_export/kage" = {
|
||||||
device = "zdata/zdata/nfs";
|
device = "zdata/zdata/kage";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home/nate/nfs" = {
|
fileSystems."/home/nate/kage" = {
|
||||||
device = "192.168.1.169:/nfs_export";
|
device = "192.168.1.169:/kage";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [ "nfsvers=4.2" "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ]; # lazy mounting and auto disconnect after 600 seconds
|
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 {
|
services.nfs.server = lib.mkIf srvConfig.nfsEnable {
|
||||||
enable = true;
|
enable = true;
|
||||||
exports = ''
|
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