mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-27 20:19:45 +01:00
23 lines
362 B
Nix
23 lines
362 B
Nix
# 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
|
|
];
|
|
};
|
|
}
|