Merge pull request #306355 from eclairevoyant/nixos-rebuild-generations

nixos-rebuild: avoid rebuilding nix / reexecuting nixos-rebuild for list-generations
This commit is contained in:
Doron Behar 2024-04-26 11:41:38 +03:00 committed by GitHub
commit 258bbbf949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,10 @@ while [ "$#" -gt 0 ]; do
;;
switch|boot|test|build|edit|repl|dry-build|dry-run|dry-activate|build-vm|build-vm-with-bootloader|list-generations)
if [ "$i" = dry-run ]; then i=dry-build; fi
if [ "$i" = list-generations ]; then
buildNix=
fast=1
fi
# exactly one action mandatory, bail out if multiple are given
if [ -n "$action" ]; then showSyntax; fi
action="$i"