diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 02:02:23 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:32 +0530 |
| commit | 41bdeb88009dd232808edee9fc0e4ae94358d8d6 (patch) | |
| tree | c1a41f54e086064dac178ebed24d36ab34087c32 /modules/system/system-monitor/default.nix | |
| parent | 530299d97926d45939f831dc3ea5e444d2839d08 (diff) | |
| download | home-manager-config-41bdeb88009dd232808edee9fc0e4ae94358d8d6.tar.gz home-manager-config-41bdeb88009dd232808edee9fc0e4ae94358d8d6.zip | |
refactor: moving script into modules that makes sense
- instead of collecting all scripts into modules/scripts we are moving
them to modules that makes sense (yazi-file-chooser.sh into yazi)
Diffstat (limited to 'modules/system/system-monitor/default.nix')
| -rw-r--r-- | modules/system/system-monitor/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/system/system-monitor/default.nix b/modules/system/system-monitor/default.nix new file mode 100644 index 0000000..e103ed3 --- /dev/null +++ b/modules/system/system-monitor/default.nix @@ -0,0 +1,41 @@ +# System monitor script using tmux to run bottom and nvtop side-by-side +{ + config, + lib, + pkgs, + ... +}: +let + inherit ((import ../../lib/script.nix { inherit lib pkgs; })) mkScriptModule; + script = mkScriptModule { + scope = [ "system" ]; + name = "system-monitor"; + path = ./system-monitor.sh; + description = "System monitor script using tmux to run bottom and nvtop side-by-side\nOpens a tmux session with:\n - Left pane: bottom (system/process monitor)\n - Right pane: nvtop (GPU monitor)"; + deps = [ + config.system.bottom.package + config.system.nvtop.package + config.terminal.tmux.package + config.terminal.kitty.package + pkgs.bash + ]; + desktop = { + enable = true; + displayName = "System Monitor"; + icon = "bottom-system-monitor"; + }; + inherit config; + }; +in +{ + options = script.options; + config = lib.mkMerge [ + script.config + { + assertions = import ./assertions.nix { inherit config lib; }; + home.file.".local/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg" = { + source = ../../../assets/icons/bottom-system-monitor.svg; + }; + } + ]; +} |
