From b8d21d78d98d0b7def95a68f9f1a3379af4422d9 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Mon, 27 Jul 2026 04:45:16 +1000 Subject: [PATCH] fix: wire vars.nfsShares.options and correct stale share key names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Filter non-attrset values from nfsShares in server.nix so the poolDatasets loop skips the new `options` string entry - Fix typo proxomoxLxcImages → proxmoxLxcImages in server.nix exports - Rename proxmoxPxeImages → pxebootImages in mount-pxe-images.nix and pxe-boot.nix to match the actual key in variables.nix Co-Authored-By: Claude Sonnet 4.6 --- modules/build-types/pxe-boot.nix | 2 +- modules/build-types/server.nix | 5 +++-- modules/pxe-boot/mount-pxe-images.nix | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/build-types/pxe-boot.nix b/modules/build-types/pxe-boot.nix index 8179adb..52a80dd 100644 --- a/modules/build-types/pxe-boot.nix +++ b/modules/build-types/pxe-boot.nix @@ -171,7 +171,7 @@ in tmpfiles.rules = [ "d ${pxeRoot} 0755 root root -" "d ${httpRoot} 0755 root root -" - "L+ ${httpRoot}/images - - - - ${vars.nfsShares.proxmoxPxeImages.mountpoint}" + "L+ ${httpRoot}/images - - - - ${vars.nfsShares.pxebootImages.mountpoint}" "d ${httpRoot}/auto-installer 0755 root root -" "d ${httpRoot}/nixos-minimal 0755 root root -" "d ${httpRoot}/systemrescue 0755 root root -" diff --git a/modules/build-types/server.nix b/modules/build-types/server.nix index b4e55dc..53bc190 100644 --- a/modules/build-types/server.nix +++ b/modules/build-types/server.nix @@ -10,7 +10,8 @@ let in lib.imap1 (i: _: lib.concatStringsSep "/" (lib.take i parts)) parts; poolDatasets = lib.unique ( - lib.concatMap (share: ancestors share.subpath) (lib.attrValues vars.nfsShares) + lib.concatMap (share: ancestors share.subpath) + (lib.filter builtins.isAttrs (lib.attrValues vars.nfsShares)) ); in { @@ -84,7 +85,7 @@ in ${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.proxmoxLxcImages.subpath} ${vars.lanCidr}${vars.nfsShares.options} ${vars.storageRoot}/${vars.nfsShares.pxebootImages.subpath} ${vars.lanCidr}${vars.nfsShares.options} ''; }; diff --git a/modules/pxe-boot/mount-pxe-images.nix b/modules/pxe-boot/mount-pxe-images.nix index 656562f..b3879c6 100644 --- a/modules/pxe-boot/mount-pxe-images.nix +++ b/modules/pxe-boot/mount-pxe-images.nix @@ -7,8 +7,8 @@ let nfsServer = "${vars.nfsServerHost}.${vars.homeDomain}"; in { - fileSystems.${vars.nfsShares.proxmoxPxeImages.mountpoint} = { - device = "${nfsServer}:${vars.storageRoot}/${vars.nfsShares.proxmoxPxeImages.subpath}"; + fileSystems.${vars.nfsShares.pxebootImages.mountpoint} = { + device = "${nfsServer}:${vars.storageRoot}/${vars.nfsShares.pxebootImages.subpath}"; fsType = "nfs"; options = [ "_netdev"