diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-06-09 20:24:27 +0000 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-06-09 20:24:27 +0000 |
| commit | 3981482362931c995bc814c3e4441628b86980f1 (patch) | |
| tree | b3ba0b1b949cf4490e1f404a8ecdb4eab86eb1f5 /modules/terminal/system/programs/broot.nix | |
| parent | f3b7a6a33588ad425de02c4b841df19f30733e44 (diff) | |
broot is quick!
Diffstat (limited to 'modules/terminal/system/programs/broot.nix')
| -rw-r--r-- | modules/terminal/system/programs/broot.nix | 28 |
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]; + }; + } |
