diff --git a/apps/btop/default.nix b/apps/btop/default.nix index e356f05..4171748 100644 --- a/apps/btop/default.nix +++ b/apps/btop/default.nix @@ -4,9 +4,10 @@ myConfig, ... }: { + # This enables the btop configuration file generation in your home directory. + # The btop package itself is now installed system-wide via modules/nixos/btop.nix programs.btop = { enable = true; - package = pkgs.btop.override {rocmSupport = true;}; settings = { vim_keys = true; color_theme = "TTY"; @@ -15,19 +16,20 @@ }; }; + # This updates your Hyprland settings to use the btop-power wrapper. wayland.windowManager.hyprland.settings = lib.mkMerge [ { bindd = [ - "CTRL SHIFT, Escape, Open Btop Minimal, exec, uwsm app -- xdg-terminal-exec -e btop -p 2" + "CTRL SHIFT, Escape, Open Btop Minimal, exec, uwsm app -- xdg-terminal-exec -e btop-power -p 2" ]; } (lib.mkIf (myConfig.btop.autostart) { exec-once = [ - "uwsm app -- xdg-terminal-exec -e btop -p 2" + "uwsm app -- xdg-terminal-exec -e btop-power -p 2" ]; windowrulev2 = [ "monitor ${myConfig.btop.monitor}, title:^(btop)$" ]; }) ]; -} +} \ No newline at end of file