fix for nfs share

This commit is contained in:
Nathan Anderson 2024-03-18 09:05:31 -06:00
parent 44fe27911a
commit 4f8c9c85aa
3 changed files with 5 additions and 5 deletions

View File

@ -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" ];
};

View File

@ -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
};

View File

@ -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)
'';
};