set ip for nfs exports

This commit is contained in:
NyxErinys 2026-05-21 23:29:44 -05:00
parent 8f3a0bccd1
commit d49a835ae2

View file

@ -1,7 +1,7 @@
{ ... }: { ... }:
{ {
networking.firewall.allowedTCPPorts = [ 111 2049 4000 4001 4002 20048 ]; networking.firewall.allowedTCPPorts = [ 2049 ];
networking.firewall.allowedUDPPorts = [ 111 2049 4000 4001 4002 20048 ]; # networking.firewall.allowedUDPPorts = [ 111 2049 4000 4001 4002 20048 ];
fileSystems."/export/containers" = { fileSystems."/export/containers" = {
device = "/Velaris/Containers"; device = "/Velaris/Containers";
options = [ "bind" ]; options = [ "bind" ];
@ -13,8 +13,8 @@
mountdPort = 4002; mountdPort = 4002;
statdPort = 4000; statdPort = 4000;
exports = '' exports = ''
/export 10.5.0.2(rw,fsid=0,no_subtree_check) /export 10.5.0.0/24(rw,fsid=0,no_subtree_check)
/export/containers 10.5.0.2(rw,nohide,insecure,no_subtree_check) /export/containers 10.5.0.0/24(rw,nohide,insecure,no_subtree_check)
''; '';
}; };
} }