aboutsummaryrefslogtreecommitdiffstats
path: root/modules/system/htop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/htop/default.nix')
-rw-r--r--modules/system/htop/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/system/htop/default.nix b/modules/system/htop/default.nix
index 7781464..cf36f41 100644
--- a/modules/system/htop/default.nix
+++ b/modules/system/htop/default.nix
@@ -7,8 +7,13 @@
# Htop - Interactive process viewer (using htop-vim version)
{
- config = lib.mkIf config.programs.htop.enable {
+ options.system.htop = {
+ enable = lib.mkEnableOption "Enables htop.";
+ };
+
+ config = lib.mkIf config.system.htop.enable {
programs.htop = {
+ enable = true;
package = pkgs.htop-vim;
};
};