1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-30 14:59:43 +01:00
nixos-hardware/lenovo/yoga/7/14ARH7/amdgpu/default.nix

25 lines
411 B
Nix
Raw Normal View History

# Including this file will enable the AMD-GPU driver
{ lib, pkgs, ... }:
let
inherit (lib) mkDefault;
in {
imports = [
../shared.nix
2024-06-21 23:26:44 +02:00
../../../../../common/gpu/24.05-compat.nix
];
# AMD RX680
services.xserver.videoDrivers = mkDefault [ "amdgpu" ];
hardware = {
amdgpu.loadInInitrd = true;
2024-06-21 15:44:42 +02:00
graphics.extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
};
}