sudo apt update
sudo apt install nfs-kernel-server
Edit exports:
sudo nano /etc/exports
Example:
/srv/nfs 192.168.1.0/24(rw,sync,no_subtree_check)
Apply:
sudo exportfs -ra
sudo systemctl enable --now nfs-server
sudo dnf install nfs-utils
Enable and start:
sudo systemctl enable --now nfs-server