1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-08 18:33:52 +00:00
ultima/modules/nixos/hardware/amd/default.nix

27 lines
616 B
Nix
Raw Normal View History

2024-12-03 14:20:37 +00:00
{ lib, config, True, False, ... }:
2024-11-21 09:24:15 +00:00
with lib;
let cfg = config.module.hardware.amd;
in {
options = { module.hardware.amd = { enable = mkEnableOption ""; }; };
config = mkIf cfg.enable {
hardware = {
2024-11-23 14:31:05 +00:00
graphics = True // { enable32Bit = true; };
2024-11-21 09:24:15 +00:00
amdgpu = { # GPU ENABLE
2024-11-23 14:31:05 +00:00
initrd = True;
2024-11-21 09:24:15 +00:00
amdvlk = True // {
support32Bit = True;
2024-12-03 14:20:37 +00:00
supportExperimental = False;
2024-11-21 09:24:15 +00:00
};
};
cpu.amd = { # OPTIMIZATION FOR CPU
updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
ryzen-smu = True;
};
};
};
}