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