mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-28 16:18:52 +01:00
29 lines
639 B
Nix
29 lines
639 B
Nix
|
{ pkgs, config, lib, gpuType, ... }:
|
||
|
|
||
|
lib.mkIf ("${gpuType}" == "intel-amd") {
|
||
|
nixpkgs.config.packageOverrides =
|
||
|
pkgs: {
|
||
|
vaapiIntel = pkgs.vaapiIntel.override {
|
||
|
enableHybridCodec = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# OpenGL
|
||
|
hardware.opengl = {
|
||
|
extraPackages = with pkgs; [
|
||
|
intel-media-driver
|
||
|
vaapiIntel
|
||
|
vaapiVdpau
|
||
|
libvdpau-va-gl
|
||
|
amdvlk
|
||
|
];
|
||
|
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
||
|
};
|
||
|
|
||
|
systemd.tmpfiles.rules = [
|
||
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||
|
];
|
||
|
services.xserver.enable = true;
|
||
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||
|
}
|