mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Hardware/AMD] simplify
This commit is contained in:
parent
8272f748f0
commit
a2b445297c
1 changed files with 6 additions and 12 deletions
|
|
@ -34,18 +34,12 @@ in {
|
|||
optional cfg.useProprietary "amdgpu-pro"
|
||||
++ [ "modesetting" ];
|
||||
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; mkIf (!cfg.useProprietary) (
|
||||
[
|
||||
rocmPackages.clr.icd
|
||||
]
|
||||
++ optional (cfg.defaultVulkanImplementation == "amdvlk") amdvlk
|
||||
);
|
||||
extraPackages32 = with pkgs.driversi686Linux; mkIf (!cfg.useProprietary) ([]
|
||||
++ optional (cfg.defaultVulkanImplementation == "amdvlk") amdvlk
|
||||
);
|
||||
};
|
||||
hardware.amdgpu.opencl.enable = true;
|
||||
|
||||
hardware.amdgpu.amdvlk.enable = cfg.defaultVulkanImplementation == "amdvlk";
|
||||
hardware.amdgpu.amdvlk.support32Bit.enable = mkDefault config.hardware.amdgpu.amdvlk.enable;
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue