nixos-config/modules/services/nas/nfs.nix

19 lines
476 B
Nix
Raw Normal View History

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