From ed6a9a88bff0fcc9425f3acecac266c8e0ff2cec Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 10 Nov 2024 11:28:58 -0800 Subject: [PATCH] move broot to its own file --- home.nix | 20 -------------------- programs/broot/default.nix | 25 +++++++++++++++++++++++++ programs/default.nix | 1 + 3 files changed, 26 insertions(+), 20 deletions(-) create mode 100644 programs/broot/default.nix diff --git a/home.nix b/home.nix index f2248d0..2284b87 100644 --- a/home.nix +++ b/home.nix @@ -111,26 +111,6 @@ enable = true; }; - programs.broot = { - enable = true; - enableFishIntegration = true; - settings = { - modal = true; - verbs = [ - { - invocation = "panel_right"; - key = "alt-right"; - internal = ":panel_right"; - } - { - invocation = "panel_left_no_open"; - key = "alt-left"; - internal = ":panel_left_no_open"; - } - ]; - }; - }; - programs.btop = { enable = true; }; diff --git a/programs/broot/default.nix b/programs/broot/default.nix new file mode 100644 index 0000000..0f42875 --- /dev/null +++ b/programs/broot/default.nix @@ -0,0 +1,25 @@ +{ config, pkgs, ... }: +let + myverbs = [ + { + invocation = "panel_right"; + key = "alt-right"; + internal = ":panel_right"; + } + { + invocation = "panel_left_no_open"; + key = "alt-left"; + internal = ":panel_left_no_open"; + } + ]; +in +{ + programs.broot = { + enable = true; + enableFishIntegration = true; + settings = { + modal = true; + verbs = myverbs; + }; + }; +} diff --git a/programs/default.nix b/programs/default.nix index 2f3b1ee..5c225bf 100644 --- a/programs/default.nix +++ b/programs/default.nix @@ -1,4 +1,5 @@ [ + ./broot ./fish ./git ./tmux