mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-07 23:23:57 +00:00
29 lines
677 B
Nix
29 lines
677 B
Nix
|
{ pkgs, lib, config, True, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let cfg = config.module.hardware.amd;
|
||
|
in {
|
||
|
options = { module.hardware.amd = { enable = mkEnableOption ""; }; };
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
hardware = {
|
||
|
graphics = True // { # GPU
|
||
|
enable32Bit = true;
|
||
|
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
||
|
};
|
||
|
amdgpu = { # GPU ENABLE
|
||
|
amdvlk = True // {
|
||
|
support32Bit = True;
|
||
|
supportExperimental = True;
|
||
|
};
|
||
|
};
|
||
|
cpu.amd = { # OPTIMIZATION FOR CPU
|
||
|
updateMicrocode =
|
||
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
ryzen-smu = True;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|