mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-12 08:00:30 -04:00
sys-gui-gpu: separate template with gpu drivers
- doc(sys-gui-gpu): clarify GPU attachment
This commit is contained in:
parent
bcea67d353
commit
186815c362
6 changed files with 52 additions and 8 deletions
|
@ -52,6 +52,18 @@ vendor, please use
|
|||
[qvm-pci](https://www.qubes-os.org/doc/how-to-use-pci-devices/#qvm-pci-usage)
|
||||
to persistently attach the GPU with the permissive option to `sys-gui-gpu`.
|
||||
|
||||
For example, after identifying PCI device identifier:
|
||||
|
||||
```sh
|
||||
qvm-pci ls -vs --resolve-paths
|
||||
```
|
||||
|
||||
To assign device for persistent attachment:
|
||||
|
||||
```sh
|
||||
qvm-assign -v -o permissive=True -o no-strict-reset=True -r sys-gui-gpu dom0:00_02.1-00_00.0
|
||||
```
|
||||
|
||||
Shutdown all your running qubes as the global property `default_guivm` has
|
||||
changed to `sys-gui-gpu`.
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.co
|
|||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
include:
|
||||
- sys-gui.clone
|
||||
{% from 'utils/macros/clone-template.sls' import clone_template -%}
|
||||
{{ clone_template('fedora-minimal', sls_path) }}
|
||||
|
|
|
@ -12,7 +12,6 @@ SPDX-License-Identifier: GPL-2.0-only
|
|||
|
||||
include:
|
||||
- {{ slsdotpath }}.clone
|
||||
- sys-gui.create
|
||||
|
||||
"{{ slsdotpath }}-installed":
|
||||
pkg.installed:
|
||||
|
@ -25,16 +24,26 @@ include:
|
|||
- dummy-psu-sender
|
||||
{% endif %}
|
||||
|
||||
{% load_yaml as defaults -%}
|
||||
name: tpl-{{ slsdotpath }}
|
||||
force: True
|
||||
require:
|
||||
- sls: {{ slsdotpath }}.clone
|
||||
prefs:
|
||||
- audiovm: ""
|
||||
{%- endload %}
|
||||
{{ load(defaults) }}
|
||||
|
||||
{% load_yaml as defaults -%}
|
||||
name: {{ slsdotpath }}
|
||||
force: True
|
||||
require:
|
||||
- qvm: tpl-sys-gui
|
||||
- qvm: tpl-{{ slsdotpath }}
|
||||
present:
|
||||
- template: tpl-sys-gui
|
||||
- template: tpl-{{ slsdotpath }}
|
||||
- label: black
|
||||
prefs:
|
||||
- template: tpl-sys-gui
|
||||
- template: tpl-{{ slsdotpath }}
|
||||
- label: black
|
||||
- memory: 600
|
||||
- maxmem: 4000
|
||||
|
|
|
@ -8,7 +8,7 @@ base:
|
|||
'dom0':
|
||||
- match: nodegroup
|
||||
- sys-gui-gpu.create
|
||||
'tpl-sys-gui':
|
||||
'tpl-sys-gui-gpu':
|
||||
- sys-gui-gpu.install
|
||||
'sys-gui-gpu':
|
||||
- sys-gui-gpu.configure
|
||||
|
|
|
@ -13,4 +13,27 @@ Upstream pkg.installed install weak_deps/recommends.
|
|||
include:
|
||||
- sys-gui.install
|
||||
|
||||
"{{ slsdotpath }}-installed":
|
||||
pkg.installed:
|
||||
- require:
|
||||
- sls: sys-gui.install
|
||||
- install_recommends: False
|
||||
- skip_suggestions: True
|
||||
- setopt: "install_weak_deps=False"
|
||||
- pkgs:
|
||||
- pciutils
|
||||
- lshw
|
||||
- linux-firmware
|
||||
- amd-gpu-firmware
|
||||
- amd-ucode-firmware
|
||||
- xorg-x11-drv-amdgpu
|
||||
- radeontop
|
||||
- nvidia-gpu-firmware
|
||||
- libva-nvidia-driver
|
||||
- xorg-x11-drv-nouveau
|
||||
- intel-gpu-firmware
|
||||
- libva-intel-hybrid-driver
|
||||
- libva-intel-media-driver
|
||||
- xorg-x11-drv-intel
|
||||
|
||||
{% endif -%}
|
||||
|
|
|
@ -5,5 +5,5 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||
#}
|
||||
|
||||
base:
|
||||
'tpl-sys-gui':
|
||||
'tpl-sys-gui-gpu':
|
||||
- sys-gui-gpu.install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue