mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-08 18:13:52 +00:00
27 lines
614 B
Nix
27 lines
614 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 // { enable32Bit = true; };
|
|
amdgpu = { # GPU ENABLE
|
|
initrd = True;
|
|
amdvlk = True // {
|
|
support32Bit = True;
|
|
supportExperimental = True;
|
|
};
|
|
};
|
|
cpu.amd = { # OPTIMIZATION FOR CPU
|
|
updateMicrocode =
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
ryzen-smu = True;
|
|
};
|
|
};
|
|
};
|
|
}
|