Re-add HW accel to amd-laptop
This commit is contained in:
parent
46b565de32
commit
b15548143d
1 changed files with 7 additions and 6 deletions
|
@ -7,16 +7,17 @@
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [ zenmonitor ];
|
environment.systemPackages = with pkgs; [ zenmonitor ];
|
||||||
|
|
||||||
hardware.graphics.extraPackages = with pkgs; [ rocmPackages.clr.icd ];
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
extraPackages = with pkgs; [ rocmPackages.clr.icd ];
|
||||||
|
};
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
hardware.amdgpu.initrd.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver = lib.mkIf config.services.xserver.enable {
|
xserver = lib.mkIf config.services.xserver.enable {
|
||||||
videoDrivers = [
|
videoDrivers = [ "modesetting" ];
|
||||||
"amdgpu"
|
|
||||||
"modesetting"
|
|
||||||
];
|
|
||||||
deviceSection = ''
|
deviceSection = ''
|
||||||
Option "DRI" "2"
|
Option "DRI" "2"
|
||||||
Option "TearFree" "true"
|
Option "TearFree" "true"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue