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