From 29dc558a3108ce6c50e311184ddde3a4b59afd78 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Mon, 4 Nov 2024 01:04:49 +0100 Subject: [PATCH] feat: improve gpu settings --- SwarselSystems.org | 12 ++++++++++++ profiles/common/nixos/hardware.nix | 3 +++ profiles/nbl-imba-2/default.nix | 10 ++++++++++ 3 files changed, 25 insertions(+) diff --git a/SwarselSystems.org b/SwarselSystems.org index b3eed90..78dba0a 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -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"; }; + hardware = { + amdgpu = { + opencl.enable = true; + amdvlk = { + enable = true; + support32Bit.enable = true; + }; + }; + }; + programs.fw-fanctrl.enable = true; networking = { @@ -4171,11 +4181,13 @@ Enable OpenGL, Sound, Bluetooth and various drivers. { 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; diff --git a/profiles/common/nixos/hardware.nix b/profiles/common/nixos/hardware.nix index 45afc54..6800107 100644 --- a/profiles/common/nixos/hardware.nix +++ b/profiles/common/nixos/hardware.nix @@ -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 = { diff --git a/profiles/nbl-imba-2/default.nix b/profiles/nbl-imba-2/default.nix index 175aeb7..bdfd62f 100644 --- a/profiles/nbl-imba-2/default.nix +++ b/profiles/nbl-imba-2/default.nix @@ -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 = {