Skip to content

Commit

Permalink
Merge pull request #306355 from eclairevoyant/nixos-rebuild-generations
Browse files Browse the repository at this point in the history
nixos-rebuild: avoid rebuilding nix / reexecuting nixos-rebuild for list-generations
  • Loading branch information
doronbehar committed Apr 26, 2024
2 parents 76003ad + 2680b60 commit 258bbbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 258bbbf

Please sign in to comment.