21 lines
363 B
Nix
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 ];
|
|
|
|
}
|