mirror of
https://github.com/blahai/nyx.git
synced 2025-01-19 03:20:20 +00:00
24 lines
447 B
Nix
24 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
|
|
];
|
|
};
|
|
}
|