Files
nixos-setup/hosts/hl-bigbox2/services/nfs-server.nix
T
2026-10-13 19:52:27 -04:00

25 lines
625 B
Nix

{ ... }:
let
ports = {
lockdPort = 4001;
mountdPort = 4002;
statdPort = 4000;
};
openPorts = builtins.attrValues ports;
in
{
skyg.nixos.common.networking.nfsServer.enable = true;
services.nfs.server = {
lockdPort = ports.lockdPort;
mountdPort = ports.mountdPort;
statdPort = ports.statdPort;
extraNfsdConfig = '''';
exports = ''
/data/fourTerra 10.0.0.0/16(rw,wdelay,insecure,no_root_squash,no_subtree_check,sec=sys,rw,insecure,no_root_squash,no_all_squash)
'';
};
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;
}