mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
types: pass rootMountPoint via a globals module arg
This commit is contained in:
1 parent
cedd626e11
commit
1f2be5db26
7 files changed
+42
-41
No files matched your search
+3
-2
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user