feat: complete wayland desktop deployment (gnome/kde/sway/hyprland)
This commit is contained in:
@@ -28,21 +28,41 @@
|
||||
memory: "{{ [system_raw.memory | default(0) | int, 0] | max }}"
|
||||
balloon: "{{ [system_raw.balloon | default(0) | int, 0] | max }}"
|
||||
# --- Network ---
|
||||
# Flat fields (bridge, ip, etc.) and interfaces[] are mutually exclusive.
|
||||
# When interfaces[] is set, flat fields are populated from the first
|
||||
# interface in the "Populate primary network fields" task below.
|
||||
# When only flat fields are set, a synthetic interfaces[] entry is built.
|
||||
# Flat fields (bridge, ip, etc.) and interfaces[] express the same primary NIC.
|
||||
# When only flat fields are set, a synthetic interfaces[] entry is built below.
|
||||
# When interfaces[] is set, the flat ip/prefix/gateway are backfilled from
|
||||
# interfaces[0] so consumers reading the flat fields (e.g. the post-reboot
|
||||
# reconnect block) still work.
|
||||
network:
|
||||
bridge: "{{ system_raw.network.bridge | default('') | string }}"
|
||||
bridge: >-
|
||||
{{
|
||||
(system_raw.network.bridge | default('') | string)
|
||||
if (system_raw.network.bridge | default('') | string | length) > 0
|
||||
else (system_raw.network.interfaces[0].bridge | default('') | string
|
||||
if (system_raw.network.interfaces | default([]) | length) > 0 else '')
|
||||
}}
|
||||
vlan: "{{ system_raw.network.vlan | default('') | string }}"
|
||||
ip: "{{ system_raw.network.ip | default('') | string }}"
|
||||
ip: >-
|
||||
{{
|
||||
(system_raw.network.ip | default('') | string)
|
||||
if (system_raw.network.ip | default('') | string | length) > 0
|
||||
else (system_raw.network.interfaces[0].ip | default('') | string
|
||||
if (system_raw.network.interfaces | default([]) | length) > 0 else '')
|
||||
}}
|
||||
prefix: >-
|
||||
{{
|
||||
(system_raw.network.prefix | int | string)
|
||||
if (system_raw.network.prefix | default('') | string | length) > 0
|
||||
else ''
|
||||
else (system_raw.network.interfaces[0].prefix | default('') | string
|
||||
if (system_raw.network.interfaces | default([]) | length) > 0 else '')
|
||||
}}
|
||||
gateway: >-
|
||||
{{
|
||||
(system_raw.network.gateway | default('') | string)
|
||||
if (system_raw.network.gateway | default('') | string | length) > 0
|
||||
else (system_raw.network.interfaces[0].gateway | default('') | string
|
||||
if (system_raw.network.interfaces | default([]) | length) > 0 else '')
|
||||
}}
|
||||
gateway: "{{ system_raw.network.gateway | default('') | string }}"
|
||||
dns:
|
||||
servers: "{{ system_raw.network.dns.servers | default([]) }}"
|
||||
search: "{{ system_raw.network.dns.search | default([]) }}"
|
||||
@@ -148,6 +168,9 @@
|
||||
enabled: "{{ system_raw.features.desktop.enabled | bool }}"
|
||||
environment: "{{ system_raw.features.desktop.environment | default('') | string | lower }}"
|
||||
display_manager: "{{ system_raw.features.desktop.display_manager | default('') | string | lower }}"
|
||||
autologin: "{{ system_raw.features.desktop.autologin | default(false) }}"
|
||||
session: "{{ system_raw.features.desktop.session | default('') | string }}"
|
||||
groups: "{{ system_raw.features.desktop.groups | default([]) }}"
|
||||
secure_boot:
|
||||
enabled: "{{ system_raw.features.secure_boot.enabled | bool }}"
|
||||
method: "{{ system_raw.features.secure_boot.method | default('') | string | lower }}"
|
||||
@@ -169,7 +192,12 @@
|
||||
else (system_raw.features.firmware.microcode | bool)
|
||||
}}
|
||||
gpu:
|
||||
enabled: "{{ system_raw.features.gpu.enabled | bool }}"
|
||||
enabled: >-
|
||||
{{
|
||||
(system_raw.features.desktop.enabled | bool)
|
||||
if (system_raw.features.gpu.enabled | string | lower) == 'auto'
|
||||
else (system_raw.features.gpu.enabled | bool)
|
||||
}}
|
||||
nvidia_driver: "{{ system_raw.features.gpu.nvidia_driver | default('auto') | string | lower }}"
|
||||
peripherals:
|
||||
enabled: >-
|
||||
|
||||
Reference in New Issue
Block a user