mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 10:19:48 +01:00
htop: add package option (#2407)
This commit is contained in:
parent
b5d738b5a3
commit
91155a98ed
1 changed files with 8 additions and 1 deletions
|
@ -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