Skip to content

Commit

Permalink
feat: add configuration for enabling bottom terminal program
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Nov 19, 2024
1 parent 2fd670d commit 0465429
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions modules/home/programs/terminal/bottom/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
lib,
pkgs,
namespace,
config,
...
}: let
cfg = config.${namespace}.programs.terminal.bottom;
in {
options.${namespace}.programs.terminal.bottom = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether to enable bottom.";
};
};

config = lib.mkIf cfg.enable {
programs.bottom = {
enable = true;
package = pkgs.bottom;
};
};
}
1 change: 1 addition & 0 deletions modules/home/suites/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ in {
programs = {
terminal = {
bat.enable = true;
bottom.enable = true;
btop.enable = true;
comma.enable = true;
direnv.enable = true;
Expand Down

0 comments on commit 0465429

Please sign in to comment.