feat: improve GPU support for modules

This commit is contained in:
2026-01-25 16:19:09 +01:00
parent 4d752e0ab4
commit 3c3caa6750
6 changed files with 31 additions and 9 deletions

View File

@@ -1,10 +1,22 @@
{pkgs, ...}: {
{
pkgs,
config,
...
}:
let
inherit (config.home) gpuType;
in
{
programs.btop = {
enable = true;
package = pkgs.btop.override {
rocmSupport = true;
cudaSupport = true;
};
package =
if gpuType != null then
pkgs.btop.override {
rocmSupport = gpuType == "amd";
cudaSupport = gpuType == "nvidia";
}
else
pkgs.btop;
settings = {
color_theme = "${pkgs.btop}/share/btop/themes/nord.theme";
cpu_bottom = false;