types: pass rootMountPoint via a globals module arg

This commit is contained in:
lassulus authored and lassulus committed 2026-11-10 13:03:15 +01:00
1 parent cedd626e11
commit 1f2be5db26
7 files changed
+42 -41

No files matched your search

+3 -2
View File
@@ -480,7 +480,8 @@ let
postUnmountHook = diskoLib.mkHook "shell commands to run after unmount";
};
config._module.args = {
inherit diskoLib rootMountPoint;
inherit diskoLib;
globals = { inherit rootMountPoint; };
};
}
];
@@ -1168,7 +1169,7 @@ let
lib.listToAttrs (map (option: lib.nameValuePair option type.options.${option}) options);
typesSerializerLib = {
rootMountPoint = "";
globals.rootMountPoint = "";
options = null;
config = {
_module = {