Converted btop from nixosModule to homeModule
This commit is contained in:
parent
76bb3e5a76
commit
c0f10df484
5 changed files with 13 additions and 15 deletions
25
modules/home/apps/btop/default.nix
Normal file
25
modules/home/apps/btop/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.${namespace}.apps.btop;
|
||||
in {
|
||||
options.${namespace}.apps.btop = {
|
||||
enable = mkEnableOption "btop";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme_background = false;
|
||||
vim_keys = true;
|
||||
color_theme = "gruvbox_dark_v2";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue