mirror of
https://github.com/blahai/nyx.git
synced 2025-01-19 11:30:20 +00:00
25 lines
447 B
Nix
25 lines
447 B
Nix
|
{
|
||
|
lib,
|
||
|
pkgs,
|
||
|
config,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib.modules) mkIf;
|
||
|
inherit (config.olympus) device;
|
||
|
in {
|
||
|
config = mkIf (device.gpu == "amd") {
|
||
|
services.xserver.videoDrivers = ["amdgpu"];
|
||
|
|
||
|
boot = {
|
||
|
kernelModules = ["amdgpu"];
|
||
|
initrd.kernelModules = ["amdgpu"];
|
||
|
};
|
||
|
|
||
|
# enables AMDVLK & OpenCL support
|
||
|
hardware.graphics.extraPackages = [
|
||
|
pkgs.rocmPackages.clr
|
||
|
pkgs.rocmPackages.clr.icd
|
||
|
];
|
||
|
};
|
||
|
}
|