mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Hardware/AMD] Add corectrl and enable OC features on AMD GPUs
This commit is contained in:
parent
8ef9c2914a
commit
d664d01f85
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ in
|
||||||
"amdgpu.cik_support" = 1;
|
"amdgpu.cik_support" = 1;
|
||||||
"amdgpu.freesync_video" = 1;
|
"amdgpu.freesync_video" = 1;
|
||||||
"amdgpu.mes" = mkIf generalCfg.unsafeOptimizations 1;
|
"amdgpu.mes" = mkIf generalCfg.unsafeOptimizations 1;
|
||||||
|
"amdgpu.ppfeaturemask" = mkIf generalCfg.unsafeOptimizations "0xfff7ffff";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; []
|
environment.systemPackages = with pkgs; []
|
||||||
|
|
@ -48,6 +49,8 @@ in
|
||||||
"radeon"
|
"radeon"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.corectrl.enable = mkIf generalCfg.unsafeOptimizations true;
|
||||||
|
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
hardware.opengl.extraPackages = with pkgs; mkIf (!cfg.useProprietary) (mkAfter [
|
hardware.opengl.extraPackages = with pkgs; mkIf (!cfg.useProprietary) (mkAfter [
|
||||||
rocm-opencl-icd
|
rocm-opencl-icd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue