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 # Bind mount for nfs export
fileSystems."/nfs_export" = { fileSystems."/nfs_export/kage" = {
device = "zdata/zdata/nfs"; device = "zdata/zdata/kage";
options = [ "bind" ]; options = [ "bind" ];
}; };

View File

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

View File

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