home: htop: make it enable-able

This commit is contained in:
Bruno BELANYI 2021-03-13 00:01:54 +00:00
parent 58c9b60722
commit 4678164d74

View file

@ -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; enable = true;
}; };
} }