feat(hardware): auto-detect audio, bluetooth, camera with declarative override
This commit is contained in:
@@ -206,23 +206,45 @@
|
||||
if (system_raw.features.peripherals.enabled | string | lower) == 'auto'
|
||||
else (system_raw.features.peripherals.enabled | bool)
|
||||
}}
|
||||
# fingerprint/webcam stay tri-state ('auto'|'true'|'false') because the
|
||||
# 'auto' branch is resolved at install time using detection results.
|
||||
# fingerprint/camera/audio/bluetooth stay tri-state ('auto'|'true'|'false')
|
||||
# because the 'auto' branch is resolved at install time using detection results.
|
||||
fingerprint: >-
|
||||
{{
|
||||
'auto'
|
||||
if (system_raw.features.peripherals.fingerprint | string | lower) == 'auto'
|
||||
else (system_raw.features.peripherals.fingerprint | bool | string | lower)
|
||||
}}
|
||||
webcam: >-
|
||||
camera: >-
|
||||
{{
|
||||
'auto'
|
||||
if (system_raw.features.peripherals.webcam | string | lower) == 'auto'
|
||||
else (system_raw.features.peripherals.webcam | bool | string | lower)
|
||||
if (system_raw.features.peripherals.camera | string | lower) == 'auto'
|
||||
else (system_raw.features.peripherals.camera | bool | string | lower)
|
||||
}}
|
||||
audio: >-
|
||||
{{
|
||||
'auto'
|
||||
if (system_raw.features.peripherals.audio | string | lower) == 'auto'
|
||||
else (system_raw.features.peripherals.audio | bool | string | lower)
|
||||
}}
|
||||
bluetooth: >-
|
||||
{{
|
||||
'auto'
|
||||
if (system_raw.features.peripherals.bluetooth | string | lower) == 'auto'
|
||||
else (system_raw.features.peripherals.bluetooth | bool | string | lower)
|
||||
}}
|
||||
displaylink: "{{ system_raw.features.peripherals.displaylink | bool }}"
|
||||
hardware:
|
||||
profile: "{{ system_raw.features.hardware.profile | default({}) }}"
|
||||
cpu: "{{ system_raw.features.hardware.cpu | default('') | string }}"
|
||||
gpus: "{{ system_raw.features.hardware.gpus | default([]) | list }}"
|
||||
wireless: "{{ system_raw.features.hardware.wireless | default([]) | list }}"
|
||||
audio: "{{ system_raw.features.hardware.audio | default([]) | list }}"
|
||||
camera: "{{ system_raw.features.hardware.camera | default({}) }}"
|
||||
fingerprint: "{{ system_raw.features.hardware.fingerprint | default(false) | bool }}"
|
||||
bluetooth: "{{ system_raw.features.hardware.bluetooth | default(false) | bool }}"
|
||||
packages: "{{ system_raw.features.hardware.packages | default({}) }}"
|
||||
disable: "{{ system_raw.features.hardware.disable | default([]) | list }}"
|
||||
kernel_params: "{{ system_raw.features.hardware.kernel_params | default([]) | list }}"
|
||||
hostname: "{{ system_name }}"
|
||||
os: "{{ system_os_input if system_os_input | length > 0 else (physical_default_os if system_type == 'physical' else '') }}"
|
||||
os_version: "{{ system_raw.version | default('') | string }}"
|
||||
|
||||
Reference in New Issue
Block a user