mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 19:28:26 +02:00
22 lines
564 B
Nix
22 lines
564 B
Nix
{pkgs, ...}: let
|
|
btopPackage = pkgs.btop.override {cudaSupport = true;};
|
|
in {
|
|
programs.btop = {
|
|
enable = true;
|
|
package = btopPackage;
|
|
settings = {
|
|
vim_keys = true;
|
|
shown_boxes = "cpu mem net proc gpu0";
|
|
};
|
|
};
|
|
|
|
xdg.desktopEntries.btop = {
|
|
name = "btop++";
|
|
exec = "${pkgs.ghostty}/bin/ghostty +new-window -e ${btopPackage}/bin/btop";
|
|
comment = "Ressources monitor (btop)";
|
|
categories = ["Settings"];
|
|
terminal = false;
|
|
settings.Keywords = "ressource;ressources;btop;usage;monitoring;cpu;gpu;memory";
|
|
};
|
|
}
|