21 lines
455 B
Nix
21 lines
455 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
environment.systemPackages = with pkgs; [ zenmonitor ];
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [ rocmPackages.clr.icd ];
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
services = {
|
|
xserver = pkgs.lib.mkIf config.services.xserver.enable {
|
|
videoDrivers = [
|
|
"amdgpu"
|
|
"modesetting"
|
|
];
|
|
deviceSection = ''
|
|
Option "DRI" "2"
|
|
Option "TearFree" "true"
|
|
'';
|
|
};
|
|
};
|
|
}
|