Migrate system info TUI tools to terminal config

This commit is contained in:
Joey Hafner 2025-01-02 15:27:14 -08:00
parent 3aff72d4bb
commit d986cafd84
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55
3 changed files with 32 additions and 69 deletions

View File

@ -1,29 +0,0 @@
{ pkgs, ... }: {
# services.flatpak.packages = [
# "io.missioncenter.MissionCenter/x86_64/stable"
# ];
home.packages = with pkgs; [
amdgpu_top
mission-center
];
programs.btop = {
enable = true;
package = pkgs.btop-rocm;
settings = {
color_theme = "stylix";
theme_background = true;
update_ms = 500;
};
};
xdg.desktopEntries = {
btop = {
exec = "${pkgs.kitty}/bin/kitty --override initial_window_width=800 --override initial_window_height=480 --override remember_window_size=no btop";
icon = "utilities-system-monitor";
name = "btop";
categories = [ "Utility" "System" ];
type = "Application";
};
};
}

View File

@ -9,16 +9,16 @@
fzf-git-sh
wl-clipboard
jq
amdgpu_top
mission-center
nethogs
( writeShellApplication {
name = "kitty-popup";
runtimeInputs = [
kitty
];
runtimeInputs = [];
text = ''
#!/bin/bash
${pkgs.kitty}/bin/kitty \
kitty \
--override initial_window_width=1280 \
--override initial_window_height=720 \
--override remember_window_size=no \
@ -26,40 +26,6 @@
"$@"
'';
} )
( writeShellApplication {
name = "nethogs";
runtimeInputs = [
kitty
nethogs
];
text = ''
#!/bin/bash
${pkgs.kitty}/bin/kitty \
--override initial_window_width=1280 \
--override initial_window_height=720 \
--override remember_window_size=no \
--class kitty-popup \
${pkgs.nethogs}/bin/nethogs
'';
} )
( writeShellApplication {
name = "btop";
runtimeInputs = [
kitty
btop
];
text = ''
#!/bin/bash
${pkgs.kitty}/bin/kitty \
--override initial_window_width=1280 \
--override initial_window_height=720 \
--override remember_window_size=no \
--class kitty-popup \
${pkgs.btop}/bin/btop
'';
} )
];
@ -163,4 +129,31 @@
package = pkgs-unstable.fzf;
};
programs.btop = {
enable = true;
package = pkgs.btop-rocm;
settings = {
color_theme = "stylix";
theme_background = true;
update_ms = 500;
};
};
xdg.desktopEntries = {
btop = {
exec = "kitty-popup btop";
icon = "utilities-system-monitor";
name = "btop";
categories = [ "Utility" "System" ];
type = "Application";
};
nethogs = {
exec = "kitty-popup nethogs";
icon = "utilities-system-monitor";
name = "btop";
categories = [ "Utility" "System" ];
type = "Application";
};
};
}

View File

@ -1,7 +1,7 @@
{ vars, ... }:
{
imports = [
./configuration/stylix.nix
#./configuration/stylix.nix
./configuration/git.nix
./configuration/keys.nix
./configuration/defaultApps.nix
@ -18,7 +18,6 @@
./apps/multimedia.nix
./apps/obsidian.nix
./apps/spotify.nix
./apps/systeminfo.nix
./apps/password-manager.nix
./apps/email.nix
./apps/emulators.nix