clan_cli machines: use Flake instead of FlakeId

This commit is contained in:
lassulus
2025-02-06 04:51:28 +01:00
parent 6d2845c645
commit 32748c14f4
47 changed files with 242 additions and 251 deletions

View File

@@ -163,7 +163,7 @@ export const Flash = () => {
machine: {
name: values.machine.devicePath,
flake: {
loc: values.machine.flake,
identifier: values.machine.flake,
},
},
mode: "format",

View File

@@ -20,7 +20,7 @@ export function CreateMachine() {
initialValues: {
opts: {
clan_dir: {
loc: activeURI() || "",
identifier: activeURI() || "",
},
machine: {
tags: ["all"],
@@ -49,7 +49,7 @@ export function CreateMachine() {
opts: {
...values.opts,
clan_dir: {
loc: active_dir,
identifier: active_dir,
},
},
});

View File

@@ -140,7 +140,7 @@ const InstallMachine = (props: InstallMachineProps) => {
machine: {
name: props.name,
flake: {
loc: curr_uri,
identifier: curr_uri,
},
},
target_host: target,

View File

@@ -83,7 +83,7 @@ export const HWStep = (props: StepProps<HardwareValues>) => {
setIsGenerating(true);
const r = await callApi("generate_machine_hardware_info", {
opts: {
flake: { loc: curr_uri },
flake: { identifier: curr_uri },
machine: props.machine_id,
target_host: target,
backend: "nixos-facter",