From 046542969187d38b467b7257e49819891b0b6567 Mon Sep 17 00:00:00 2001 From: YouSiki Date: Tue, 19 Nov 2024 13:11:32 +0800 Subject: [PATCH] feat: add configuration for enabling bottom terminal program --- .../home/programs/terminal/bottom/default.nix | 24 +++++++++++++++++++ modules/home/suites/common/default.nix | 1 + 2 files changed, 25 insertions(+) create mode 100644 modules/home/programs/terminal/bottom/default.nix diff --git a/modules/home/programs/terminal/bottom/default.nix b/modules/home/programs/terminal/bottom/default.nix new file mode 100644 index 0000000..2ae8592 --- /dev/null +++ b/modules/home/programs/terminal/bottom/default.nix @@ -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; + }; + }; +} diff --git a/modules/home/suites/common/default.nix b/modules/home/suites/common/default.nix index d4becac..013d317 100644 --- a/modules/home/suites/common/default.nix +++ b/modules/home/suites/common/default.nix @@ -19,6 +19,7 @@ in { programs = { terminal = { bat.enable = true; + bottom.enable = true; btop.enable = true; comma.enable = true; direnv.enable = true;