2023-06-14 14:21:08 +00:00
|
|
|
{pkgs, ...}: {
|
2023-09-08 11:41:22 +00:00
|
|
|
systemd.packages = with pkgs; [nfs-utils];
|
|
|
|
services.nfs.server = {
|
|
|
|
enable = true;
|
|
|
|
exports = ''
|
|
|
|
/export/vf2 192.168.2.1/24(rw,no_root_squash,async,nohide,no_subtree_check)
|
|
|
|
'';
|
|
|
|
extraNfsdConfig = '''';
|
|
|
|
};
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [111 2049 4000 4001 4002 20048];
|
|
|
|
allowedUDPPorts = [111 2049 4000 4001 4002 20048];
|
|
|
|
};
|
2023-06-14 14:21:08 +00:00
|
|
|
}
|