Thot Control

Dead Simple NFS NixOS to MacOS Client

Creates /nfs folder with proper permissions

sudo mkdir -p /nfs
sudo chown -R 501:20 /nfs

/etc/nixos/configuration.conf

services.nfs.server.enable = true;
services.nfs.server.exports = ''
         /nfs *(rw,async,no_subtree_check,fsid=0,insecure,no_root_squash,anonuid=501,anongid=20)
       '';

To diagnose problems

journalctl -u nfs-server -f

I seem to have gotten better speeds with the following in my /etc/nfs.conf file on macos:

nfs.client.mount.options=vers=3,async,tcp,nconnect=16,sec=sys,rw,nolocks,rdirplus,rsize=65536,wsize=65536,actimeo=1,nfc,intr,timeo=600,readahead=128

Open finder, go > connect to server

nfs://nixos/nfs