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 e7218d09c9
commit 07e6d1e57c

View File

@@ -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)