feat: optional state to autostart AudioVM

Not the default because it is unnecessary to autostart AudioVM as audio
is not necessary for everyone on every boot.

Fixes: https://github.com/ben-grande/qusal/issues/39
This commit is contained in:
Ben Grande 2024-03-23 22:18:45 +01:00
parent cf88ad1ed4
commit fcc155f5c7
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56
3 changed files with 26 additions and 0 deletions

View File

@ -41,6 +41,11 @@ sudo qubesctl --skip-dom0 --targets=dvm-sys-audio state.apply sys-audio.configur
```
<!-- pkg:end:post-install -->
If you want to autostart the AudioVM on boot, you may run:
```sh
sudo qubesctl state.apply sys-audio.autostart
```
If you need Bluetooth support, install the dependencies:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-sys-audio state.apply sys-audio.install-bluetooth

View File

@ -0,0 +1,11 @@
{#
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
"{{ slsdotpath }}-autostart-audiovm":
qvm.vm:
- name: disp-{{ slsdotpath }}
- prefs:
- autostart: True

View File

@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
base:
'dom0':
- match: nodegroup
- sys-audio.autostart