2023-01-07 19:43:12 +01:00
|
|
|
{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)
|
|
|
|
'';
|
2023-01-07 20:09:37 +01:00
|
|
|
createMountPoints = true;
|
2023-01-07 19:43:12 +01:00
|
|
|
};
|
|
|
|
# open the firewall
|
|
|
|
networking.firewall = {
|
2023-10-01 20:24:46 +02:00
|
|
|
interfaces.enp6s18 = {
|
2023-01-07 19:43:12 +01:00
|
|
|
allowedTCPPorts = [ 2049 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|