add: nfs config

This commit is contained in:
FabricSoul 2025-06-05 00:59:52 -04:00
parent 8eb51a0071
commit 2975de79e2

View file

@ -0,0 +1,21 @@
# hosts/common/optional/nfs.nix
{...}: {
# Enable NFS server
services.nfs.server = {
enable = true;
# Define your exports
exports = ''
/nas 192.168.2.101(rw,sync,no_root_squash,no_subtree_check)
'';
# Enable NFSv4 (recommended)
# Remove this line if you need to stick with NFSv2/v3 only
createMountPoints = true;
};
# Ensure the directories exist
systemd.tmpfiles.rules = [
"d /nas 0755 root root -"
];
}