mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: improve gpu settings
This commit is contained in:
parent
ba7c319683
commit
29dc558a31
3 changed files with 25 additions and 0 deletions
|
|
@ -1784,6 +1784,16 @@ My work machine. Built for more security, this is the gold standard of my config
|
||||||
resumeDevice = "/dev/disk/by-label/nixos";
|
resumeDevice = "/dev/disk/by-label/nixos";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
amdgpu = {
|
||||||
|
opencl.enable = true;
|
||||||
|
amdvlk = {
|
||||||
|
enable = true;
|
||||||
|
support32Bit.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.fw-fanctrl.enable = true;
|
programs.fw-fanctrl.enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
@ -4171,11 +4181,13 @@ Enable OpenGL, Sound, Bluetooth and various drivers.
|
||||||
{
|
{
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
# opengl.driSupport32Bit = true is replaced with graphics.enable32Bit and hence redundant
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
trackpoint = lib.mkIf config.swarselsystems.trackpoint.isAvailable {
|
trackpoint = lib.mkIf config.swarselsystems.trackpoint.isAvailable {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit (config.swarselsystems.trackpoint) device;
|
inherit (config.swarselsystems.trackpoint) device;
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,13 @@
|
||||||
{
|
{
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
# opengl.driSupport32Bit = true is replaced with graphics.enable32Bit and hence redundant
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
trackpoint = lib.mkIf config.swarselsystems.trackpoint.isAvailable {
|
trackpoint = lib.mkIf config.swarselsystems.trackpoint.isAvailable {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit (config.swarselsystems.trackpoint) device;
|
inherit (config.swarselsystems.trackpoint) device;
|
||||||
|
|
@ -24,6 +26,7 @@
|
||||||
|
|
||||||
bluetooth = lib.mkIf config.swarselsystems.hasBluetooth {
|
bluetooth = lib.mkIf config.swarselsystems.hasBluetooth {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.stable.bluez;
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
settings = {
|
settings = {
|
||||||
General = {
|
General = {
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,16 @@
|
||||||
resumeDevice = "/dev/disk/by-label/nixos";
|
resumeDevice = "/dev/disk/by-label/nixos";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
amdgpu = {
|
||||||
|
opencl.enable = true;
|
||||||
|
amdvlk = {
|
||||||
|
enable = true;
|
||||||
|
support32Bit.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.fw-fanctrl.enable = true;
|
programs.fw-fanctrl.enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue