From 4c5ade5605d75b44c6e3b486b91e63c612936cd2 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Mon, 27 Jul 2026 04:34:32 +1000 Subject: [PATCH] updated NFS shares and added vars.nfsShares.options --- modules/build-types/server.nix | 15 ++++++++------- variables.nix | 7 ++++++- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/modules/build-types/server.nix b/modules/build-types/server.nix index 882a5b4..b4e55dc 100644 --- a/modules/build-types/server.nix +++ b/modules/build-types/server.nix @@ -78,13 +78,14 @@ in services.nfs.server = { enable = true; exports = '' - ${vars.storageRoot}/${vars.nfsShares.dockerConfig.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) - ${vars.storageRoot}/${vars.nfsShares.dockerVolumes.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) - ${vars.storageRoot}/${vars.nfsShares.dockerDatabases.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) - ${vars.storageRoot}/${vars.nfsShares.nextcloudData.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) - ${vars.storageRoot}/${vars.nfsShares.raspiVolumes.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) - ${vars.storageRoot}/${vars.nfsShares.proxmoxIsos.subpath} ${vars.lanCidr}(rw,sync,no_subtree_check,no_root_squash) - ${vars.storageRoot}/${vars.nfsShares.proxmoxPxeImages.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}${vars.nfsShares.options} + ${vars.storageRoot}/${vars.nfsShares.dockerDatabases.subpath} ${vars.lanCidr}${vars.nfsShares.options} + ${vars.storageRoot}/${vars.nfsShares.nextcloudData.subpath} ${vars.lanCidr}${vars.nfsShares.options} + ${vars.storageRoot}/${vars.nfsShares.raspiVolumes.subpath} ${vars.lanCidr}${vars.nfsShares.options} + ${vars.storageRoot}/${vars.nfsShares.proxmoxIsos.subpath} ${vars.lanCidr}${vars.nfsShares.options} + ${vars.storageRoot}/${vars.nfsShares.proxomoxLxcImages.subpath} ${vars.lanCidr}${vars.nfsShares.options} + ${vars.storageRoot}/${vars.nfsShares.pxebootImages.subpath} ${vars.lanCidr}${vars.nfsShares.options} ''; }; diff --git a/variables.nix b/variables.nix index cdd65f2..e1e15b1 100644 --- a/variables.nix +++ b/variables.nix @@ -83,6 +83,7 @@ # dataset or moving where it's mounted only needs changing it here — the # export and every client reference follow automatically. nfsShares = { + options = "(rw,sync,no_subtree_check,no_root_squash)"; dockerConfig = { subpath = "docker/config"; mountpoint = "/mnt/docker/config"; @@ -107,7 +108,11 @@ subpath = "proxmox/iso"; mountpoint = "/mnt/iso"; }; - proxmoxPxeImages = { + proxmoxLxcImages = { + subpath = "proxmox/lxc"; + mountpoint = "/mnt/lxc"; + }; + pxebootImages = { subpath = "pxe-boot/images"; mountpoint = "/mnt/pxe-images"; };