expose storage drive over NFS for the local network
This commit is contained in:
parent
819ac7d913
commit
6a856e8b61
2 changed files with 9 additions and 1 deletions
|
|
@ -43,5 +43,13 @@
|
||||||
networking.wireless.networks.N904.pskRaw = (
|
networking.wireless.networks.N904.pskRaw = (
|
||||||
(import ../system/framework/keys.nix).wifi.N904.pskRaw
|
(import ../system/framework/keys.nix).wifi.N904.pskRaw
|
||||||
);
|
);
|
||||||
|
|
||||||
|
services.nfs.server.enable = true;
|
||||||
|
services.nfs.server.exports = ''
|
||||||
|
/export 192.168.1.0/24(insecure,crossmnt,fsid=0)
|
||||||
|
/export/storage 192.168.1.0/24(insecure)
|
||||||
|
'';
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 2049 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/export" =
|
fileSystems."/export/storage" =
|
||||||
{
|
{
|
||||||
device = "/storage";
|
device = "/storage";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue