diff options
Diffstat (limited to 'modules/home/tools/btop/default.nix')
| -rw-r--r-- | modules/home/tools/btop/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/home/tools/btop/default.nix b/modules/home/tools/btop/default.nix new file mode 100644 index 0000000..87528a1 --- /dev/null +++ b/modules/home/tools/btop/default.nix @@ -0,0 +1,15 @@ +{ options, config, lib, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.tools.btop; +in { + options.${namespace}.tools.btop = with types; { + enable = mkEnableOption "btop"; + }; + + config = mkIf cfg.enable { + programs.btop = { + enable = true; + }; + }; +} |