updated NFS shares and added vars.nfsShares.options

This commit is contained in:
2026-07-27 04:34:32 +10:00
parent 4f54a1f0cd
commit 4c5ade5605
2 changed files with 14 additions and 8 deletions
+8 -7
View File
@@ -78,13 +78,14 @@ in
services.nfs.server = { services.nfs.server = {
enable = true; enable = true;
exports = '' exports = ''
${vars.storageRoot}/${vars.nfsShares.dockerConfig.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) ${vars.storageRoot}/${vars.nfsShares.dockerConfig.subpath} ${vars.lanCidr}${vars.nfsShares.options}
${vars.storageRoot}/${vars.nfsShares.dockerVolumes.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) ${vars.storageRoot}/${vars.nfsShares.dockerVolumes.subpath} ${vars.lanCidr}${vars.nfsShares.options}
${vars.storageRoot}/${vars.nfsShares.dockerDatabases.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) ${vars.storageRoot}/${vars.nfsShares.dockerDatabases.subpath} ${vars.lanCidr}${vars.nfsShares.options}
${vars.storageRoot}/${vars.nfsShares.nextcloudData.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) ${vars.storageRoot}/${vars.nfsShares.nextcloudData.subpath} ${vars.lanCidr}${vars.nfsShares.options}
${vars.storageRoot}/${vars.nfsShares.raspiVolumes.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) ${vars.storageRoot}/${vars.nfsShares.raspiVolumes.subpath} ${vars.lanCidr}${vars.nfsShares.options}
${vars.storageRoot}/${vars.nfsShares.proxmoxIsos.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) ${vars.storageRoot}/${vars.nfsShares.proxmoxIsos.subpath} ${vars.lanCidr}${vars.nfsShares.options}
${vars.storageRoot}/${vars.nfsShares.proxmoxPxeImages.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) ${vars.storageRoot}/${vars.nfsShares.proxomoxLxcImages.subpath} ${vars.lanCidr}${vars.nfsShares.options}
${vars.storageRoot}/${vars.nfsShares.pxebootImages.subpath} ${vars.lanCidr}${vars.nfsShares.options}
''; '';
}; };
+6 -1
View File
@@ -83,6 +83,7 @@
# dataset or moving where it's mounted only needs changing it here — the # dataset or moving where it's mounted only needs changing it here — the
# export and every client reference follow automatically. # export and every client reference follow automatically.
nfsShares = { nfsShares = {
options = "(rw,sync,no_subtree_check,no_root_squash)";
dockerConfig = { dockerConfig = {
subpath = "docker/config"; subpath = "docker/config";
mountpoint = "/mnt/docker/config"; mountpoint = "/mnt/docker/config";
@@ -107,7 +108,11 @@
subpath = "proxmox/iso"; subpath = "proxmox/iso";
mountpoint = "/mnt/iso"; mountpoint = "/mnt/iso";
}; };
proxmoxPxeImages = { proxmoxLxcImages = {
subpath = "proxmox/lxc";
mountpoint = "/mnt/lxc";
};
pxebootImages = {
subpath = "pxe-boot/images"; subpath = "pxe-boot/images";
mountpoint = "/mnt/pxe-images"; mountpoint = "/mnt/pxe-images";
}; };