Skip to content

Commit

Permalink
feat: optional state to autostart AudioVM
Browse files Browse the repository at this point in the history
Not the default because it is unnecessary to autostart AudioVM as audio
is not necessary for everyone on every boot.

Fixes: #39
  • Loading branch information
ben-grande committed Mar 23, 2024
1 parent cf88ad1 commit fcc155f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions salt/sys-audio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions salt/sys-audio/autostart.sls
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions salt/sys-audio/autostart.top
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fcc155f

Please sign in to comment.