nixos: improve indentation in nixos/doc/manual/configuration/gpu-accel.chapter.md
This commit is contained in:
parent
ad393d5f63
commit
2d466c7adc
|
@ -57,7 +57,7 @@ enables OpenCL support:
|
||||||
```nix
|
```nix
|
||||||
hardware.opengl.extraPackages = [
|
hardware.opengl.extraPackages = [
|
||||||
rocm-opencl-icd
|
rocm-opencl-icd
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
### Intel {#sec-gpu-accel-opencl-intel}
|
### Intel {#sec-gpu-accel-opencl-intel}
|
||||||
|
@ -78,7 +78,7 @@ configuration can be used:
|
||||||
```nix
|
```nix
|
||||||
hardware.opengl.extraPackages = [
|
hardware.opengl.extraPackages = [
|
||||||
intel-compute-runtime
|
intel-compute-runtime
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
## Vulkan {#sec-gpu-accel-vulkan}
|
## Vulkan {#sec-gpu-accel-vulkan}
|
||||||
|
@ -145,17 +145,17 @@ A specific driver can be forced as follows:
|
||||||
```nix
|
```nix
|
||||||
hardware.opengl.extraPackages = [
|
hardware.opengl.extraPackages = [
|
||||||
pkgs.amdvlk
|
pkgs.amdvlk
|
||||||
];
|
];
|
||||||
|
|
||||||
# To enable Vulkan support for 32-bit applications, also add:
|
# To enable Vulkan support for 32-bit applications, also add:
|
||||||
hardware.opengl.extraPackages32 = [
|
hardware.opengl.extraPackages32 = [
|
||||||
pkgs.driversi686Linux.amdvlk
|
pkgs.driversi686Linux.amdvlk
|
||||||
];
|
];
|
||||||
|
|
||||||
# Force radv
|
# Force radv
|
||||||
environment.variables.AMD_VULKAN_ICD = "RADV";
|
environment.variables.AMD_VULKAN_ICD = "RADV";
|
||||||
# Or
|
# Or
|
||||||
environment.variables.VK_ICD_FILENAMES =
|
environment.variables.VK_ICD_FILENAMES =
|
||||||
"/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
|
"/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ Platform Vendor Advanced Micro Devices, Inc.
|
||||||
<programlisting language="bash">
|
<programlisting language="bash">
|
||||||
hardware.opengl.extraPackages = [
|
hardware.opengl.extraPackages = [
|
||||||
rocm-opencl-icd
|
rocm-opencl-icd
|
||||||
];
|
];
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="sec-gpu-accel-opencl-intel">
|
<section xml:id="sec-gpu-accel-opencl-intel">
|
||||||
|
@ -88,7 +88,7 @@ hardware.opengl.extraPackages = [
|
||||||
<programlisting language="bash">
|
<programlisting language="bash">
|
||||||
hardware.opengl.extraPackages = [
|
hardware.opengl.extraPackages = [
|
||||||
intel-compute-runtime
|
intel-compute-runtime
|
||||||
];
|
];
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -165,17 +165,17 @@ GPU1:
|
||||||
<programlisting language="bash">
|
<programlisting language="bash">
|
||||||
hardware.opengl.extraPackages = [
|
hardware.opengl.extraPackages = [
|
||||||
pkgs.amdvlk
|
pkgs.amdvlk
|
||||||
];
|
];
|
||||||
|
|
||||||
# To enable Vulkan support for 32-bit applications, also add:
|
# To enable Vulkan support for 32-bit applications, also add:
|
||||||
hardware.opengl.extraPackages32 = [
|
hardware.opengl.extraPackages32 = [
|
||||||
pkgs.driversi686Linux.amdvlk
|
pkgs.driversi686Linux.amdvlk
|
||||||
];
|
];
|
||||||
|
|
||||||
# Force radv
|
# Force radv
|
||||||
environment.variables.AMD_VULKAN_ICD = "RADV";
|
environment.variables.AMD_VULKAN_ICD = "RADV";
|
||||||
# Or
|
# Or
|
||||||
environment.variables.VK_ICD_FILENAMES =
|
environment.variables.VK_ICD_FILENAMES =
|
||||||
"/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
|
"/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue