home: htop: make it enable-able
This commit is contained in:
parent
58c9b60722
commit
4678164d74
|
@ -1,6 +1,13 @@
|
|||
{ ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.htop;
|
||||
in
|
||||
{
|
||||
programs.htop = {
|
||||
options.my.home.htop = with lib.my; {
|
||||
enable = mkDisableOption "htop configuration";
|
||||
};
|
||||
|
||||
config.programs.htop = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue