clan_cli machines: use Flake instead of FlakeId
This commit is contained in:
@@ -51,7 +51,7 @@ export const MachineListItem = (props: MachineListItemProps) => {
|
||||
machine: {
|
||||
name: name,
|
||||
flake: {
|
||||
loc: active_clan,
|
||||
identifier: active_clan,
|
||||
},
|
||||
},
|
||||
no_reboot: true,
|
||||
|
||||
@@ -163,7 +163,7 @@ export const Flash = () => {
|
||||
machine: {
|
||||
name: values.machine.devicePath,
|
||||
flake: {
|
||||
loc: values.machine.flake,
|
||||
identifier: values.machine.flake,
|
||||
},
|
||||
},
|
||||
mode: "format",
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -140,7 +140,7 @@ const InstallMachine = (props: InstallMachineProps) => {
|
||||
machine: {
|
||||
name: props.name,
|
||||
flake: {
|
||||
loc: curr_uri,
|
||||
identifier: curr_uri,
|
||||
},
|
||||
},
|
||||
target_host: target,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user