nixos-config/hosts/monolith/amdgpu.nix

27 lines
539 B
Nix

{ pkgs, ... }:
let
# mesaPkgs = pkgs.unstable.mesa;
mesaPkgs = pkgs;
in
{
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelParams = [
"video=DP-1:1920x1080@144"
];
# hardware.amdgpu = {
# overdrive = {
# enable = true;
# ppfeaturemask = "0xffffffff";
# };
# };
hardware.graphics.package = mesaPkgs.mesa; # Mesa 26 at the time
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages = with mesaPkgs; [
# libva needs to match `hardware.graphics.package`
libva
];
}