Compare commits

2 Commits

Author SHA1 Message Date
John Lancaster 244c60d9cd moved yazi to shell-tools 2026-06-10 08:53:21 -05:00
John Lancaster f2254e5dc7 added yazi 2026-06-10 08:53:21 -05:00
3 changed files with 85 additions and 54 deletions
+26 -6
View File
@@ -1,6 +1,9 @@
# 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, ... }: { {
flake.modules.homeManager.shell-tools =
{ config, pkgs, ... }:
{
imports = with inputs.self.modules.homeManager; [ imports = with inputs.self.modules.homeManager; [
# bash # bash
zsh zsh
@@ -17,11 +20,19 @@
home.shell.enableShellIntegration = true; home.shell.enableShellIntegration = true;
}; };
perSystem = { system, pkgs, self', ... }: { perSystem =
{
system,
pkgs,
self',
...
}:
{
packages.shell-tools = inputs.wrappers.lib.wrapPackage { packages.shell-tools = inputs.wrappers.lib.wrapPackage {
inherit pkgs; inherit pkgs;
# binName = "show-tools"; # binName = "show-tools";
package = (pkgs.symlinkJoin { package = (
pkgs.symlinkJoin {
name = "show-tools"; name = "show-tools";
meta.mainProgram = "show-tools"; meta.mainProgram = "show-tools";
paths = with pkgs; [ paths = with pkgs; [
@@ -32,8 +43,10 @@
wget wget
curl curl
dig dig
bat
self'.packages.gdu self'.packages.gdu
self'.packages.my-eza self'.packages.my-eza
self'.packages.yazi
hostname hostname
iproute2 iproute2
direnv direnv
@@ -51,13 +64,20 @@
''; '';
}) })
]; ];
}); }
);
}; };
packages.gdu = inputs.wrappers.lib.wrapPackage { packages.gdu = inputs.wrappers.lib.wrapPackage {
inherit pkgs; inherit pkgs;
package = pkgs.gdu; package = pkgs.gdu;
args = [ "-x" "--si" "--collapse-path" "--mouse" "$@" ]; args = [
"-x"
"--si"
"--collapse-path"
"--mouse"
"$@"
];
}; };
}; };
} }
+11
View File
@@ -0,0 +1,11 @@
{ self, inputs, ... }: {
# https://github.com/Lassulus/wrappers/blob/main/modules/yazi/module.nix
perSystem = { system, pkgs, lib, ... }: {
packages.yazi = (inputs.wrappers.wrapperModules.yazi.apply {
inherit pkgs;
settings = {
mgr.ratio = [ 1 4 3 ];
};
}).wrapper;
};
}
+1 -1
View File
@@ -140,9 +140,9 @@ in
extraPackages = with pkgs; [ extraPackages = with pkgs; [
lazygit lazygit
lazydocker lazydocker
devenv
self'.packages.shell-tools self'.packages.shell-tools
self'.packages.neovim-min self'.packages.neovim-min
devenv
]; ];
}).wrapper; }).wrapper;
}; };