From fe5e97990371b164d62f34052699c3539a0f5ed4 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 12:23:16 -0800 Subject: [PATCH] feat(home): Btop --- homes/x86_64-linux/marley@nyx/default.nix | 1 + modules/home/programs/btop/default.nix | 30 +++++++++++++++++++++++ old/home/programs/btop.nix | 14 ----------- 3 files changed, 31 insertions(+), 14 deletions(-) create mode 100644 modules/home/programs/btop/default.nix delete mode 100644 old/home/programs/btop.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index da48849..0adc49e 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -16,6 +16,7 @@ in programs = { amfora = enabled; bat = enabled; + btop = enabled; fish = enabled; journalctl = enabled; neo = enabled; diff --git a/modules/home/programs/btop/default.nix b/modules/home/programs/btop/default.nix new file mode 100644 index 0000000..2c66fd0 --- /dev/null +++ b/modules/home/programs/btop/default.nix @@ -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; + }; + }; + }; +} diff --git a/old/home/programs/btop.nix b/old/home/programs/btop.nix deleted file mode 100644 index 10706b9..0000000 --- a/old/home/programs/btop.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ ... }: -{ - programs.btop = { - enable = true; - - rose-pine.enable = true; - - settings = { - theme_background = false; - truecolor = true; - vim_keys = true; - }; - }; -}