legion: nfs server
This commit is contained in:
parent
54059f106e
commit
359d902425
1 changed files with 20 additions and 0 deletions
|
@ -31,4 +31,24 @@
|
||||||
device = "/dev/disk/by-label/BULK";
|
device = "/dev/disk/by-label/BULK";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.mounts = [
|
||||||
|
{
|
||||||
|
type = "none";
|
||||||
|
options = "bind,nofail";
|
||||||
|
what = "/media/data";
|
||||||
|
where = "/export/yotta-data";
|
||||||
|
requires = ["zfs-mount.service"];
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
services.nfs.server = {
|
||||||
|
enable = true;
|
||||||
|
hostName = "100.84.112.35";
|
||||||
|
exports = ''
|
||||||
|
/export *(insecure,rw,crossmnt,fsid=0)
|
||||||
|
/export/yotta-data *(insecure,rw,nohide)
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue