Skip to content

Commit

Permalink
Fix btop settings
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Dec 8, 2024
1 parent d03b431 commit 2c378ce
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions modules/home-manager/server/cli/btop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@
programs.btop =
{
enable = true;
settings = {
update_ms = 1000;
};
}
// lib.optionals (args ? nixosConfig) {
package = pkgs.btop.override {
rocmSupport = config.facter.detected.graphics.amd.enable;
cudaSupport = config.hosts.nvidia.enable;
};
package =
if osConfig.facter.detected.graphics.amd.enable then
pkgs.btop-rocm
else
pkgs.btop.override {
cudaSupport = osConfig.hosts.nvidia.enable;
};
};

# home.file.".config/btop/themes/catppuccin".source = pkgs.fetchFromGitHub {
Expand Down

0 comments on commit 2c378ce

Please sign in to comment.