1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 18:29:47 +01:00

htop: add package option (#2407)

This commit is contained in:
Thiago Kenji Okada 2021-10-20 12:22:17 -03:00 committed by GitHub
parent b5d738b5a3
commit 91155a98ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {