helix fix and some useful zsh functions

This commit is contained in:
Rouven Seifert 2023-08-12 18:34:29 +02:00
parent 4964b6036b
commit 346d04e632
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
10 changed files with 206 additions and 37 deletions

View file

@ -73,6 +73,19 @@
unlink $OUT_PATH
}
sysdiff() {
echo System package diff:
${config.nix.package}/bin/nix store diff-closures $(command ls -d /nix/var/nix/profiles/system-* | tail -2)
}
shell() {
for var in "$@"
do
PKGS=$PKGS\ nixpkgs/nixos-unstable#$var
done
eval ${pkgs.nix-output-monitor}/bin/nom shell $PKGS
}
'';
promptInit =
''