blob: ce8a2ab86410dad402cff1b9c2ef935da76f272d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ips, ...}: {
services.nfs = {
settings = {
nfsd = {
vers3 = false;
vers4 = true;
udp = false;
tcp = true;
threads = 64;
};
};
server = {
enable = true;
createMountPoints = true;
exports = ''
/srv/data *(rw,async,no_subtree_check,crossmnt,all_squash,anonuid=1000,anongid=100)
'';
};
};
fileSystems."/srv/data" = {
device = "bulk/nfs";
fsType = "zfs";
neededForBoot = true;
options = ["noatime" "nodiratime" "nofail"];
};
fileSystems."/srv/data-backup" = {
device = "/dev/disk/by-uuid/9014f510-b08e-488f-8c43-20a4ac7f15cc";
fsType = "ext4";
options = [
"defaults"
"nofail"
"noatime"
"nodiratime"
];
};
}
|