Compare commits

...

2 Commits

Author SHA1 Message Date
John Lancaster fe24eb2dde prune binName 2026-04-19 14:03:48 -05:00
John Lancaster e9d585f8d0 shell-tools update 2026-04-19 14:02:35 -05:00
4 changed files with 41 additions and 53 deletions
+30 -14
View File
@@ -11,9 +11,6 @@
imports = with inputs.self.modules.homeManager; [
bash
zsh
# Tools
eza
files
];
@@ -21,21 +18,40 @@
home.shell.enableShellIntegration = true;
programs.zsh.enable = lib.mkForce (config.shell.program == "zsh");
home.packages = with pkgs; [
nh
nvd
nix-output-monitor
wget
curl
busybox
gnugrep
dig
btop
uv
xclip
jq
ripgrep
(writeShellScriptBin "ds" ''${lib.getExe pkgs.gdu} -x -I /snap /'')
inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.shell-tools
];
};
};
perSystem = { system, pkgs, self', ... }: {
packages.shell-tools = inputs.wrappers.lib.wrapPackage {
inherit pkgs;
package = (pkgs.symlinkJoin {
name = "shell-tools";
paths = with pkgs; [
nh
ripgrep
fd
jq
wget
curl
dig
self'.packages.gdu
self'.packages.my-eza
hostname
iproute2
direnv
];
});
};
packages.gdu = inputs.wrappers.lib.wrapPackage {
inherit pkgs;
package = pkgs.gdu;
args = [ "-x" "--si" "--collapse-path" "--mouse" "$@" ];
};
};
}
@@ -36,10 +36,6 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget
cacert
busybox
dig
samba
selfPkgs.my-neovim
selfPkgs.wg-platform
-7
View File
@@ -14,12 +14,5 @@
ignorecase = true;
};
};
home.packages = with pkgs; [
# gdu
# (writeShellScriptBin "lfcd" ''
# . <(${lib.getExe pkgs.lf} -print-last-dir | sed 's/^/cd /')
# '')
];
};
}
+11 -28
View File
@@ -108,46 +108,29 @@ in
HOSTNAME=$(hostname -s)
${aliasStr}
eval "$(direnv hook zsh)"
${aliasStr}
'';
extraPackages = with pkgs; [
self'.packages.my-eza
self'.packages.gdu
busybox
fd
ripgrep
hostname
iproute2
direnv
lazydocker
nh
self'.packages.shell-tools
];
}).wrapper;
packages.starship = (inputs.wrappers.wrapperModules.starship.apply {
inherit pkgs;
settings = lib.mkMerge [
(lib.importTOML (pkgs.fetchurl {
settings = lib.recursiveUpdate (lib.importTOML (pkgs.fetchurl {
url = https://starship.rs/presets/toml/catppuccin-powerline.toml;
sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g";
}))
{
})) {
palette = "catppuccin_mocha";
add_newline = lib.mkForce true;
line_break.disabled = lib.mkForce false;
git_status.diverged = lib.mkForce "\${ahead_count}\${behind_count}";
cmd_duration.format = lib.mkForce "󰔛 $duration";
python.disabled = lib.mkForce true;
}
];
}).wrapper;
packages.gdu = inputs.wrappers.lib.wrapPackage {
inherit pkgs;
package = pkgs.gdu;
args = [ "-x" "--si" "--collapse-path" "--mouse" "$@" ];
add_newline = true;
line_break.disabled = false;
git_status.diverged = "\${ahead_count}\${behind_count}";
cmd_duration.format = "󰔛 $duration";
# python.disabled = true;
};
}).wrapper;
};
}