add nfs share
This commit is contained in:
parent
8ab8d93c01
commit
749dc7c65e
1 changed files with 19 additions and 0 deletions
19
hosts/servers/poseidon/shares.nix
Normal file
19
hosts/servers/poseidon/shares.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{}:
|
||||||
|
{
|
||||||
|
networking.firewall.allowedTCPPorts = [ 2049 ];
|
||||||
|
fileSystems."/export/containers" = {
|
||||||
|
device = "/Velaris/Containers";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
services.nfs.server = {
|
||||||
|
enable = true;
|
||||||
|
createMountPoints = true;
|
||||||
|
lockdPort = 4001;
|
||||||
|
mountdPort = 4002;
|
||||||
|
statdPort = 4000;
|
||||||
|
exports = ''
|
||||||
|
/export 10.5.0.2(rw,fsid=0,no_subtree_check)
|
||||||
|
/export/containers 10.5.0.2(rw,nohide,insecure,no_subtree_check)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue