feat: improve gpu settings

This commit is contained in:
Swarsel 2024-11-04 01:04:49 +01:00
parent ba7c319683
commit 29dc558a31
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 25 additions and 0 deletions

View file

@ -2,11 +2,13 @@
{
hardware = {
# opengl.driSupport32Bit = true is replaced with graphics.enable32Bit and hence redundant
graphics = {
enable = true;
enable32Bit = true;
};
trackpoint = lib.mkIf config.swarselsystems.trackpoint.isAvailable {
enable = true;
inherit (config.swarselsystems.trackpoint) device;
@ -24,6 +26,7 @@
bluetooth = lib.mkIf config.swarselsystems.hasBluetooth {
enable = true;
package = pkgs.stable.bluez;
powerOnBoot = true;
settings = {
General = {

View file

@ -49,6 +49,16 @@
resumeDevice = "/dev/disk/by-label/nixos";
};
hardware = {
amdgpu = {
opencl.enable = true;
amdvlk = {
enable = true;
support32Bit.enable = true;
};
};
};
programs.fw-fanctrl.enable = true;
networking = {