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