flash: drop wifi option
This feature is broken and will be replaced by templates machines eventually.
This commit is contained in:
@@ -23,17 +23,11 @@ from .list import list_possible_keymaps, list_possible_languages
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass
|
||||
class WifiConfig:
|
||||
ssid: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class SystemConfig:
|
||||
language: str | None = field(default=None)
|
||||
keymap: str | None = field(default=None)
|
||||
ssh_keys_path: list[str] | None = field(default=None)
|
||||
wifi_settings: list[WifiConfig] | None = field(default=None)
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -65,12 +59,6 @@ def flash_machine(
|
||||
)
|
||||
generate_facts([machine])
|
||||
|
||||
if system_config.wifi_settings:
|
||||
wifi_settings: dict[str, dict[str, str]] = {}
|
||||
for wifi in system_config.wifi_settings:
|
||||
wifi_settings[wifi.ssid] = {}
|
||||
system_config_nix["clan"] = {"iwd": {"networks": wifi_settings}}
|
||||
|
||||
if system_config.language:
|
||||
if system_config.language not in list_possible_languages():
|
||||
msg = (
|
||||
|
||||
Reference in New Issue
Block a user