nix-config/hosts/Anton/nfs.nix
2024-10-19 23:30:55 +02:00

21 lines
363 B
Nix

{ ... }:
{
fileSystems = {
"/export/roms" = {
device = "/mnt/data/willifan";
options = [ "bind" ];
};
};
services.nfs.server = {
enable = true;
exports = ''
/export *(rw,fsid=0,no_subtree_check)
/export/roms *(rw,nohide,insecure,no_subtree_check)
'';
};
networking.firewall.allowedTCPPorts = [ 2049 ];
}