Add generations cleanup commmand as shell alias
This commit is contained in:
parent
d5daeb5c99
commit
7e2dcafcac
1 changed files with 7 additions and 0 deletions
|
|
@ -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 = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue