Enable hardware acceleration on Camelot
This commit is contained in:
parent
ac727a1e1d
commit
0a8bba47e7
|
@ -40,6 +40,8 @@
|
||||||
git
|
git
|
||||||
];
|
];
|
||||||
|
|
||||||
|
hwAccelerationGPU = "intel";
|
||||||
|
|
||||||
machineUsers = {
|
machineUsers = {
|
||||||
dala = {
|
dala = {
|
||||||
description = "Dala";
|
description = "Dala";
|
||||||
|
|
|
@ -14,6 +14,7 @@ with lib;
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = config.hwAccelerationGPU != null;
|
enable = config.hwAccelerationGPU != null;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
(mkIf (config.hwAccelerationGPU == "intel") intel-media-driver)
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue