Extract AMD-GPU from Nvidia, to make it easier to choose either
This commit is contained in:
parent
5a8ed531f9
commit
6e5cc385fc
4 changed files with 115 additions and 80 deletions
23
lenovo/yoga/7/14ARH7/amdgpu/default.nix
Normal file
23
lenovo/yoga/7/14ARH7/amdgpu/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue