services: nfs fix mount point and move service file to right place

This commit is contained in:
2023-01-07 20:09:37 +01:00
parent 845a69089b
commit 2ce76b55eb
2 changed files with 9 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
{config, pkgs, lib, ...}: {
# enable nfs
services.nfs.server = rec {
enable = true;
exports = ''
/export 192.168.2.0/24(rw,fsid=0,no_subtree_check)
/export/Pluto 192.168.2.0/24(rw,no_subtree_check)
/export/Mars 192.168.2.0/24(rw,no_subtree_check)
'';
createMountPoints = true;
};
# open the firewall
networking.firewall = {
interfaces.enp0s31f6 = {
allowedTCPPorts = [ 2049 ];
};
};
}