marleyos/modules/home/programs/btop/default.nix
2024-11-16 19:38:03 -08:00

30 lines
494 B
Nix

{
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;
};
};
};
}