htop: add package option (#2407)
This commit is contained in:
parent
b5d738b5a3
commit
91155a98ed
|
@ -136,6 +136,13 @@ in {
|
|||
<filename>~/.config/htop/htoprc</filename>.
|
||||
'';
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.htop;
|
||||
defaultText = literalExpression "pkgs.htop";
|
||||
description = "Package containing the <command>htop</command> 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 = {
|
||||
|
|
Loading…
Reference in a new issue