mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-01 19:13:09 +01:00
17 lines
491 B
Nix
17 lines
491 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let inherit (import ../../options.nix) gpuType; in
|
|
lib.mkIf ("${gpuType}" == "amd") {
|
|
systemd.tmpfiles.rules = [
|
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
|
];
|
|
services.xserver.enable = true;
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
|
# OpenGL
|
|
hardware.opengl = {
|
|
## amdvlk: an open-source Vulkan driver from AMD
|
|
extraPackages = [ pkgs.amdvlk ];
|
|
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
|
};
|
|
}
|