Add generations cleanup commmand as shell alias

This commit is contained in:
Rei Meliesie 2026-10-12 23:05:27 +02:00
commit 7e2dcafcac

View file

@ -105,6 +105,13 @@
nsff = "nix-store-fuzzy-find";
nbp = "nix-build-pkg";
nd = "nix develop --command $SHELL";
# New commands.
nixos-cleanup-generations = ''
zsh -c "nix-env --profile /nix/var/nix/profiles/system --delete-generations +20 && \
/run/current-system/bin/switch-to-configuration boot"
'';
};
etc.vimrc.text = ''