moved yazi to shell-tools

This commit is contained in:
John Lancaster
2026-06-10 08:53:21 -05:00
parent f2254e5dc7
commit 244c60d9cd
2 changed files with 73 additions and 54 deletions
+73 -53
View File
@@ -1,63 +1,83 @@
# This module provides all the shell options # This module provides all the shell options
{ self, inputs, ... }: { { self, inputs, ... }:
flake.modules.homeManager.shell-tools = { config, pkgs, ... }: { {
imports = with inputs.self.modules.homeManager; [ flake.modules.homeManager.shell-tools =
# bash { config, pkgs, ... }:
zsh {
files imports = with inputs.self.modules.homeManager; [
]; # bash
zsh
files
];
home.packages = with pkgs; [ home.packages = with pkgs; [
btop btop
uv uv
xclip xclip
inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.shell-tools inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.shell-tools
]; ];
home.shell.enableShellIntegration = true; home.shell.enableShellIntegration = true;
}; };
perSystem = { system, pkgs, self', ... }: { perSystem =
packages.shell-tools = inputs.wrappers.lib.wrapPackage { {
inherit pkgs; system,
# binName = "show-tools"; pkgs,
package = (pkgs.symlinkJoin { self',
name = "show-tools"; ...
meta.mainProgram = "show-tools"; }:
paths = with pkgs; [ {
nh packages.shell-tools = inputs.wrappers.lib.wrapPackage {
ripgrep inherit pkgs;
fd # binName = "show-tools";
jq package = (
wget pkgs.symlinkJoin {
curl
dig
self'.packages.gdu
self'.packages.my-eza
hostname
iproute2
direnv
(writeShellApplication {
name = "show-tools"; name = "show-tools";
text = '' meta.mainProgram = "show-tools";
IFS=':' read -r -a path_dirs <<< "''${PATH:-}" paths = with pkgs; [
nh
ripgrep
fd
jq
wget
curl
dig
bat
self'.packages.gdu
self'.packages.my-eza
self'.packages.yazi
hostname
iproute2
direnv
(writeShellApplication {
name = "show-tools";
text = ''
IFS=':' read -r -a path_dirs <<< "''${PATH:-}"
for dir in "''${path_dirs[@]}"; do for dir in "''${path_dirs[@]}"; do
[[ "$dir" == */bin ]] || continue [[ "$dir" == */bin ]] || continue
[[ -d "$dir" ]] || continue [[ -d "$dir" ]] || continue
printf '%s\n' "$dir"/* printf '%s\n' "$dir"/*
done done
''; '';
}) })
];
}
);
};
packages.gdu = inputs.wrappers.lib.wrapPackage {
inherit pkgs;
package = pkgs.gdu;
args = [
"-x"
"--si"
"--collapse-path"
"--mouse"
"$@"
]; ];
}); };
}; };
packages.gdu = inputs.wrappers.lib.wrapPackage {
inherit pkgs;
package = pkgs.gdu;
args = [ "-x" "--si" "--collapse-path" "--mouse" "$@" ];
};
};
} }
-1
View File
@@ -143,7 +143,6 @@ in
devenv devenv
self'.packages.shell-tools self'.packages.shell-tools
self'.packages.neovim-min self'.packages.neovim-min
self'.packages.yazi
]; ];
}).wrapper; }).wrapper;
}; };