aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs/broot.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/terminal/system/programs/broot.nix')
-rw-r--r--modules/terminal/system/programs/broot.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/terminal/system/programs/broot.nix b/modules/terminal/system/programs/broot.nix
new file mode 100644
index 0000000..ed86822
--- /dev/null
+++ b/modules/terminal/system/programs/broot.nix
@@ -0,0 +1,28 @@
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.terminal.shells.fish;
+ toml' = pkgs.formats.toml {};
+
+ conf = toml'.generate "conf.toml" {
+ verbs = [
+ {
+ invocation = "edit";
+ key = "enter";
+ execution = "${pkgs.helix}/bin/hx {file}";
+ }
+ ];
+ };
+in
+ lib.mkIf cfg.enable {
+ hjem.users."${config.collinux.user.name}" = {
+ files = {
+ ".config/broot/conf.toml".source = conf;
+ };
+
+ packages = [pkgs.broot];
+ };
+ }