marleyos/modules/home/programs/btop/default.nix

31 lines
494 B
Nix
Raw Normal View History

2024-11-16 12:23:16 -08:00
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule enabled;
cfg = config.${namespace}.programs.btop;
inherit (config.${namespace}) theme;
in
{
options = mkEnableModule "programs.btop";
config = mkIf cfg.enable {
programs.btop = {
enable = true;
"${theme.colors.base}" = enabled;
settings = {
theme_background = false;
truecolor = true;
vim_keys = true;
};
};
};
}