2024-02-04 00:11:26 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
{
|
|
|
|
fileSystems."/export/desktop" = {
|
|
|
|
device = "/mnt/zvault/desktop";
|
|
|
|
options = [ "bind" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nfs.server.enable = true;
|
|
|
|
services.nfs.server.exports = ''
|
|
|
|
/export 192.168.0.20(rw,fsid=0,no_subtree_check)
|
2024-02-27 06:54:21 +00:00
|
|
|
/export/desktop 192.168.0.20(rw,nohide,insecure,no_subtree_check,all_squash,anonuid=1000,anongid=1000)
|
2024-02-04 00:11:26 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 2049 ];
|
|
|
|
}
|
|
|
|
|