aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/system-monitor
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/system-monitor')
-rw-r--r--modules/tools/system-monitor/default.nix7
-rw-r--r--modules/tools/system-monitor/htop/default.nix12
2 files changed, 19 insertions, 0 deletions
diff --git a/modules/tools/system-monitor/default.nix b/modules/tools/system-monitor/default.nix
new file mode 100644
index 0000000..a5b569c
--- /dev/null
+++ b/modules/tools/system-monitor/default.nix
@@ -0,0 +1,7 @@
+{ ... }:
+
+{
+ imports = [
+ ./htop
+ ];
+}
diff --git a/modules/tools/system-monitor/htop/default.nix b/modules/tools/system-monitor/htop/default.nix
new file mode 100644
index 0000000..f27174a
--- /dev/null
+++ b/modules/tools/system-monitor/htop/default.nix
@@ -0,0 +1,12 @@
+{ pkgs, lib, config, ... }:
+
+{
+ options = {
+ htop.enable = lib.mkEnableOption "Enables htop.";
+ };
+
+ config = lib.mkIf config.htop.enable {
+ programs.htop.enable = true;
+ programs.htop.package = pkgs.htop-vim;
+ };
+}