api: persistence, fix regressions

This commit is contained in:
Johannes Kirschbauer
2025-10-16 11:57:38 +02:00
parent a32a5151dc
commit a4839f9cf2
8 changed files with 122 additions and 10 deletions

View File

@@ -9,6 +9,8 @@ let
};
}
{
# Mutable data
_file = "deferred.json";
foo = {
a = { };
b = { };
@@ -16,7 +18,9 @@ let
}
# Merge the "inventory.json"
(builtins.fromJSON (builtins.readFile ./deferred.json))
(lib.modules.setDefaultModuleLocation "deferred.json" (
builtins.fromJSON (builtins.readFile ./deferred.json)
))
];
};
in