Extract AMD-GPU from Nvidia, to make it easier to choose either

This commit is contained in:
mexisme
2023-08-18 22:33:16 +12:00
committed by mergify[bot]
parent 5a8ed531f9
commit 6e5cc385fc
4 changed files with 115 additions and 80 deletions

View File

@@ -0,0 +1,23 @@
# Including this file will enable the AMD-GPU driver
{ lib, pkgs, ... }:
let
inherit (lib) mkDefault;
in {
imports = [
../shared.nix
];
# AMD RX680
services.xserver.videoDrivers = mkDefault [ "amdgpu" ];
hardware = {
amdgpu.loadInInitrd = true;
opengl.extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
};
}