mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
helix fix and some useful zsh functions
This commit is contained in:
parent
4964b6036b
commit
346d04e632
10 changed files with 206 additions and 37 deletions
|
@ -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 =
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue