feat(home): btop

This commit is contained in:
punkfairie 2024-11-16 12:23:16 -08:00
parent d44822d587
commit b4fea44052
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 31 additions and 14 deletions

View file

@ -16,6 +16,7 @@ in
programs = { programs = {
amfora = enabled; amfora = enabled;
bat = enabled; bat = enabled;
btop = enabled;
fish = enabled; fish = enabled;
journalctl = enabled; journalctl = enabled;
neo = enabled; neo = enabled;

View file

@ -0,0 +1,30 @@
{
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;
};
};
};
}

View file

@ -1,14 +0,0 @@
{ ... }:
{
programs.btop = {
enable = true;
rose-pine.enable = true;
settings = {
theme_background = false;
truecolor = true;
vim_keys = true;
};
};
}