From 91155a98ed126553deb8696b25556d782d2a5450 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 20 Oct 2021 12:22:17 -0300 Subject: [PATCH] htop: add package option (#2407) --- modules/programs/htop.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/programs/htop.nix b/modules/programs/htop.nix index e84d70fc5..0b0524e95 100644 --- a/modules/programs/htop.nix +++ b/modules/programs/htop.nix @@ -136,6 +136,13 @@ in { ~/.config/htop/htoprc. ''; }; + + package = mkOption { + type = types.package; + default = pkgs.htop; + defaultText = literalExpression "pkgs.htop"; + description = "Package containing the htop program."; + }; }; config = mkIf cfg.enable { @@ -143,7 +150,7 @@ in { inherit fields modes leftMeters rightMeters bar text graph led blank; }; - home.packages = [ pkgs.htop ]; + home.packages = [ cfg.package ]; xdg.configFile."htop/htoprc" = let defaults = {