From 8eae5fd8afdafabe40ae00bfd22dfa1e9fbc9623 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Mon, 11 Nov 2024 11:49:35 +0100 Subject: [PATCH] enable gpu support in btop --- common/home.nix | 3 ++- hosts/lambdaos/configuration.nix | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/home.nix b/common/home.nix index 59e3b6a..9ca84a3 100644 --- a/common/home.nix +++ b/common/home.nix @@ -3,6 +3,7 @@ enableFlut ? false, enableGames ? false, displays ? [ ], + extraConfig ? { }, }: { config, @@ -32,6 +33,7 @@ in ../modules/games ../modules/hyprland.nix ./nvim/nvim.nix + extraConfig ] ++ lib.optionals enableGraphical [ ./discord/discord.nix @@ -242,5 +244,4 @@ in pinentryPackage = lib.mkIf enableGraphical pkgs.pinentry-qt; }; }; - } diff --git a/hosts/lambdaos/configuration.nix b/hosts/lambdaos/configuration.nix index 8c371fa..1ebd590 100644 --- a/hosts/lambdaos/configuration.nix +++ b/hosts/lambdaos/configuration.nix @@ -143,6 +143,13 @@ scale = "1"; } ]; + extraConfig = { + programs.btop.package = pkgs.btop.overrideAttrs (oldAttrs: rec { + cmakeFlags = (oldAttrs.cmakeFlags or [ ]) ++ [ + "-DBTOP_GPU=ON" + ]; + }); + }; }; "root" = import ./root.nix; };