Replace zet with the z monolith
All checks were successful
/ check (push) Successful in 48s

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-10-24 23:31:00 +01:00
parent 2783c9811d
commit a1b3975f39
6 changed files with 63 additions and 30 deletions

View file

@ -1,4 +1,4 @@
{ withSystem, ... }:
{ inputs, withSystem, ... }:
let
name = "start-tmux";
@ -10,9 +10,9 @@ in
packages.${name} = pkgs.writeShellApplication {
inherit name;
# TODO: Add `z` once its available as a package.
runtimeInputs = with pkgs; [
fzf
inputs.z.packages.${pkgs.system}.default
];
text = ''

View file

@ -1,27 +1,13 @@
{ inputs, withSystem, ... }:
let
name = "zet";
name = "z";
in
{
perSystem =
{ pkgs, ... }:
{
packages.${name} = pkgs.buildGoModule {
inherit name;
runtimeInputs = with pkgs; [
git
];
src = inputs.zet;
vendorHash = "sha256-pprnK2JKmPuR3Q+F8+vMDEdowlb3oX4BOOzW8NGOqgs=";
postInstall = ''
mv $out/bin/cmd-${name} $out/bin/${name}
'';
};
packages.${name} = inputs.${name}.packages.${pkgs.system}.default;
};
flake.modules.homeManager.base =

View file

@ -14,6 +14,7 @@
tag = "tag-release";
vss = "LC_ALL=C sort --unique ${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/nixos-config/modules/home-manager/cli/neovim/config/spell/en.utf-8.adddotfiles/nvim/spell/en.utf-8.add --output ${config.xdg.userDirs.extraConfig.XDG_REPOS_DIR}/nixos-config/modules/home-manager/cli/neovim/config/spell/en.utf-8.add";
wt = "git worktree";
zet = "z zet";
};
};
}

View file

@ -3,6 +3,9 @@
{ config, pkgs, ... }:
{
programs.zsh.initContent = ''
# Completions
source <(z completion zsh)
background() {
for ((i=2;i<=$#;i++)); do
''${@[1]} ''${@[$i]} &> /dev/null &