vm_config: deprecate a few fields

This commit is contained in:
Jörg Thalheim
2024-10-02 10:55:00 +02:00
committed by Mic92
parent de4603a490
commit 725009d4a8

View File

@@ -17,16 +17,20 @@ class WaypipeConfig:
@dataclass
class VmConfig:
machine_name: str
machine_icon: Path
machine_description: str
flake_url: FlakeId
clan_name: str
cores: int
memory_size: int
graphics: bool
# FIXME: I don't think this belongs here.
clan_name: str
machine_description: str | None
machine_icon: Path | None
waypipe: bool = False
def __post_init__(self) -> None:
if isinstance(self.flake_url, str):
self.flake_url = FlakeId(self.flake_url)