vars: refactor - pass Machine objects to run_generators

This commit is contained in:
DavHau
2025-08-13 15:14:16 +07:00
parent a535450ec0
commit 72d3ad09a4
5 changed files with 15 additions and 17 deletions

View File

@@ -323,8 +323,8 @@ export const useMachineGenerators = (
flake: {
identifier: clanUri,
},
full_closure: true, // TODO: Make this configurable
},
full_closure: true, // TODO: Make this configurable
// TODO: Make this configurable
include_previous_values: true,
});

View File

@@ -548,8 +548,12 @@ const InstallSummary = () => {
const runGenerators = client.fetch("run_generators", {
all_prompt_values: store.install.promptValues,
base_dir: clanUri,
machine_name: store.install.machineName,
machine: {
name: store.install.machineName,
flake: {
identifier: clanUri,
},
},
});
set("install", (s) => ({