blob: 65c1074a7b39c4f7449d3a63652de553b101967f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
config,
lib,
pkgs,
...
}:
let
inherit ((import ../lib.nix { inherit lib pkgs; })) mkScriptModule;
base = mkScriptModule {
name = "system-monitor";
path = ./script.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 = base.options;
config = base.moduleConfig // {
assertions = base.moduleConfig.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;
};
};
}
|