vm_config: deprecate a few fields
This commit is contained in:
@@ -17,16 +17,20 @@ class WaypipeConfig:
|
|||||||
@dataclass
|
@dataclass
|
||||||
class VmConfig:
|
class VmConfig:
|
||||||
machine_name: str
|
machine_name: str
|
||||||
machine_icon: Path
|
|
||||||
machine_description: str
|
|
||||||
flake_url: FlakeId
|
flake_url: FlakeId
|
||||||
clan_name: str
|
|
||||||
|
|
||||||
cores: int
|
cores: int
|
||||||
memory_size: int
|
memory_size: int
|
||||||
graphics: bool
|
graphics: bool
|
||||||
|
|
||||||
|
# FIXME: I don't think this belongs here.
|
||||||
|
clan_name: str
|
||||||
|
machine_description: str | None
|
||||||
|
machine_icon: Path | None
|
||||||
|
|
||||||
waypipe: bool = False
|
waypipe: bool = False
|
||||||
|
|
||||||
|
|
||||||
def __post_init__(self) -> None:
|
def __post_init__(self) -> None:
|
||||||
if isinstance(self.flake_url, str):
|
if isinstance(self.flake_url, str):
|
||||||
self.flake_url = FlakeId(self.flake_url)
|
self.flake_url = FlakeId(self.flake_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user